summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs3.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-11-03 06:35:27 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-03 21:36:51 -0700
commitd6d7a85487d8ec8017d1d13aa36642ad0355b3e4 (patch)
tree19afd12a6943d9490ff3116e44ff211238e788c9 /xlators/nfs/server/src/nfs3.c
parent5afc77d585c480f185dd7b24b753a6924218bb86 (diff)
nfs3: More robust root gfid checks
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2051 (find fails with loop detected error) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2051
Diffstat (limited to 'xlators/nfs/server/src/nfs3.c')
-rw-r--r--xlators/nfs/server/src/nfs3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c
index 742c63aa2..d142a31f6 100644
--- a/xlators/nfs/server/src/nfs3.c
+++ b/xlators/nfs/server/src/nfs3.c
@@ -244,12 +244,14 @@ out:
#define nfs3_funge_solaris_zerolen_fh(nfs3st, fhd, enam, nfsst, erl) \
do { \
xlator_t *fungexl = NULL; \
+ uuid_t zero = {0, }; \
fungexl =nfs_mntpath_to_xlator ((nfs3st)->exportslist,enam);\
if (!fungexl) { \
(nfsst) = NFS3ERR_NOENT; \
goto erl; \
} \
\
+ uuid_copy ((fhd)->gfid, zero); \
(fhd)->gfid[15] = 1; \
(enam) = NULL; \
if ((gf_nfs_dvm_off (nfs_state (nfs3st->nfsx)))) \