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>
This commit is contained in:
parent
3853f4ccaf
commit
4debbfe7f6
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user