summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-12-19 16:36:33 +0530
committerVijay Bellur <vijay@gluster.com>2011-12-19 08:58:16 -0800
commit4debbfe7f629626fd2e77a2d98f37f4e808e9f95 (patch)
tree4f1671627b8b26194fcca5b8d47f947e2609e028 /xlators/cluster/stripe
parent3853f4ccaf1f0446af9a3f523008c64834a63df6 (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: I35228227e943f3b01fac720d6c587764c47e6869 BUG: 768840 Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Reviewed-on: http://review.gluster.com/806 Reviewed-by: Amar Tumballi <amar@gluster.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/cluster/stripe')
-rw-r--r--xlators/cluster/stripe/src/stripe.c2
1 files changed, 2 insertions, 0 deletions
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,