diff options
authorshishir gowda <>2012-01-02 11:48:50 +0530
committerVijay Bellur <>2012-01-03 23:09:47 -0800
commit534aead50e84edcebbd9e9956f954199b7bfaa9f (patch)
parent58dbe256b9b49709d9b9d2c4ec29feeceb19540f (diff)
cluster/stripe: copy the gfid from the dentry structure to loc
In stripe_readdirp_cbk we used to send stat call on each of the entry we have got from readdirp, by creating a new inode (but without setting the gfid in loc). Protocol/client asserts if it cannot find gfid in either loc or loc->inode. This patch copies the gfid of the entry from the stat structure to loc. Change-Id: I3f124fb816fc6e3f9239a24fc657b1dbee34d3a2 BUG: 768840 Signed-off-by: shishir gowda <> Signed-off-by: Raghavendra Bhat <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Vijay Bellur <>
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index b51f849..8b10658 100644
--- a/xlators/cluster/stripe/src/stripe.c
+++ b/xlators/cluster/stripe/src/stripe.c
@@ -4196,6 +4196,8 @@ unlock: = strrchr (loc.path, '/');;
+ uuid_copy (loc.gfid, local_entry->d_stat.ia_gfid);
trav = this->children;
while (trav) {
LOCK (&frame->lock);