Patchwork [BUG:1600] nfs3: Set gfid[15] to 1 for root

login
register
Submitter Shehjar Tikoo
Date 2010-09-15 08:48:57
Message ID <1284540537-17284-1-git-send-email-shehjart@gluster.com>
Download mbox | patch
Permalink /patch/4792/
State Accepted
Headers show

Comments

Shehjar Tikoo - 2010-09-15 08:48:57
From: Shehjar Tikoo <shehjart@gluster.com>


Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
---
 xlators/nfs/server/src/nfs3-fh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/xlators/nfs/server/src/nfs3-fh.c b/xlators/nfs/server/src/nfs3-fh.c
index 10c00ba..043c969 100644
--- a/xlators/nfs/server/src/nfs3-fh.c
+++ b/xlators/nfs/server/src/nfs3-fh.c
@@ -85,6 +85,7 @@  nfs3_fh_build_uuid_root_fh (uuid_t volumeid)
         struct nfs3_fh  fh = {{0}, };
         struct iatt     buf = {0, };
 
+        buf.ia_gfid[15] = 1;
         nfs3_fh_init (&fh, &buf);
         uuid_copy (fh.exportid, volumeid);