From 534aead50e84edcebbd9e9956f954199b7bfaa9f Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Mon, 2 Jan 2012 11:48:50 +0530 Subject: 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: http://review.gluster.com/2544 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/cluster/stripe/src/stripe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index b51f84910..8b1065895 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -4196,6 +4196,8 @@ unlock: loc.name = strrchr (loc.path, '/'); loc.name++; + uuid_copy (loc.gfid, local_entry->d_stat.ia_gfid); + trav = this->children; while (trav) { LOCK (&frame->lock); -- cgit