diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-10-29 07:23:54 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-10-29 06:32:58 -0700 |
commit | 1b4613936e2d176df8e5a8548af2d59116bd9531 (patch) | |
tree | 8bc81a11d78e809327446c7a5dc84342d6abb8f2 /xlators | |
parent | c65be2d304c67e57447d6d4a2e53fae07e31ff5c (diff) |
copy the gfid of root to the iatt structure of root
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/protocol/server/src/server3_1-fops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server3_1-fops.c b/xlators/protocol/server/src/server3_1-fops.c index 0c6db9140..eaa2d5c07 100644 --- a/xlators/protocol/server/src/server3_1-fops.c +++ b/xlators/protocol/server/src/server3_1-fops.c @@ -69,6 +69,7 @@ server_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, loc_t fresh_loc = {0,}; gfs3_lookup_rsp rsp = {0, }; int32_t ret = -1; + uuid_t rootgfid = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}; state = CALL_STATE(frame); @@ -128,6 +129,7 @@ server_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, if (inode == root_inode) { /* we just looked up root ("/") */ stbuf->ia_ino = 1; + memcpy (stbuf->ia_gfid, rootgfid, 16); if (inode->ia_type == 0) inode->ia_type = stbuf->ia_type; } |