diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-12-19 16:36:33 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-12-19 08:58:16 -0800 |
commit | 4debbfe7f629626fd2e77a2d98f37f4e808e9f95 (patch) | |
tree | 4f1671627b8b26194fcca5b8d47f947e2609e028 /xlators/cluster/stripe/src/stripe.c | |
parent | 3853f4ccaf1f0446af9a3f523008c64834a63df6 (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/src/stripe.c')
-rw-r--r-- | xlators/cluster/stripe/src/stripe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index af60102c1..d1a816a03 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, |