summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-09-14 02:39:10 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-14 02:31:58 -0700
commit2152dae595438b919fbcb7349d15ead139e120d8 (patch)
treef45eb040125b4b7c40aa4b2751571c92fc85397b
parent429a94c78ad3e6a956c847836a061c860d19e499 (diff)
posix: Copy gfid from stat to dirent for readdirp
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
-rw-r--r--xlators/storage/posix/src/posix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 477574c25..482a66e16 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -3994,6 +3994,7 @@ posix_do_readdir (call_frame_t *frame, xlator_t *this,
this_entry->d_off = telldir (dir);
this_entry->d_ino = entry->d_ino;
this_entry->d_stat = stbuf;
+ uuid_copy (this_entry->d_stat.ia_gfid, stbuf.ia_gfid);
list_add_tail (&this_entry->list, &entries.list);