summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2012-01-02 11:48:50 +0530
committerVijay Bellur <vijay@gluster.com>2012-01-03 23:09:47 -0800
commit534aead50e84edcebbd9e9956f954199b7bfaa9f (patch)
tree46c4d09e746f4a69aca692d3367fa4d1e96650d9
parent58dbe256b9b49709d9b9d2c4ec29feeceb19540f (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: I3f124fb816fc6e3f9239a24fc657b1dbee34d3a2 BUG: 768840 Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Reviewed-on: http://review.gluster.com/2544 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-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 b51f84910e9..8b1065895c0 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);