From 4debbfe7f629626fd2e77a2d98f37f4e808e9f95 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Mon, 19 Dec 2011 16:36:33 +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: I35228227e943f3b01fac720d6c587764c47e6869 BUG: 768840 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.com/806 Reviewed-by: Amar Tumballi Tested-by: Gluster Build System Reviewed-by: Jeff Darcy --- 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 af60102c16f..d1a816a038c 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -4221,6 +4221,8 @@ unlock: loc.name = strrchr (loc.path, '/'); loc.name++; + uuid_copy (loc.gfid, local_entry->d_stat.ia_gfid); + trav = this->children; while (trav) { STACK_WIND_COOKIE (frame, stripe_readdirp_entry_stat_cbk, -- cgit