From 1b4613936e2d176df8e5a8548af2d59116bd9531 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Fri, 29 Oct 2010 07:23:54 +0000 Subject: copy the gfid of root to the iatt structure of root Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971 --- xlators/protocol/server/src/server3_1-fops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xlators/protocol/server/src/server3_1-fops.c b/xlators/protocol/server/src/server3_1-fops.c index 0c6db914062..eaa2d5c0743 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; } -- cgit