diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2010-05-31 22:43:52 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-06-01 00:23:46 -0700 |
commit | da08199c57cedb3dc922ed6bec07932cd2aefabd (patch) | |
tree | a528dc8a8b4de1a3b9d4b21d038964919e066f50 /xlators/nfs/server/src/nfs3-fh.c | |
parent | 5e03484d1d24ae93f7cad5fe575edd9ce8e0195b (diff) |
nfs3: Funge . and .. ino/gen in readdir of root
In the readdir reply for the root of the export, replace the ino
and gen number for the . and .. entries with 1 and 0 respectively.
On clients which inspect this field, the client will error out due
to the change in inode number of the root directory when see for "."
.. also needs to be replaced because we do not have a concept of
the parent directory of root. The return of 1 and 0 is the same as
the behaviour of: stat /.. command.
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 942 (NFS crashes as a vmware ESX data store)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=942
Diffstat (limited to 'xlators/nfs/server/src/nfs3-fh.c')
0 files changed, 0 insertions, 0 deletions