summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2012-04-06 11:17:34 -0700
committerAnand Avati <avati@redhat.com>2012-04-11 09:55:03 -0700
commitf56404a3358c799f907f36aecedf774b1875a56c (patch)
treec917fe64d6876ae7c5227e37e95b4fd917bfb52a /xlators/mount/fuse/src
parent7f5c1e5777d77570be0f9698de39d2f1905c509f (diff)
fuse-bridge: generate GFID as gfid-req in fresh lookup
This is necessary for self-heal to assign fresh GFID when performing lookup on files/dirs without GFID (migration from old version, etc.) Change-Id: I6f070255dc6e85bf6625b704cb5fb7f831ee58e6 BUG: 795355 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.com/3101 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pranithk@gluster.com>
Diffstat (limited to 'xlators/mount/fuse/src')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index bf25c967909..c9f7c89408d 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -364,6 +364,9 @@ fuse_lookup_resume (fuse_state_t *state)
"%"PRIu64": LOOKUP %s", state->finh->unique,
state->loc.path);
state->loc.inode = inode_new (state->loc.parent->table);
+ if (uuid_is_null (state->gfid))
+ uuid_generate (state->gfid);
+ fuse_gfid_set (state);
}
FUSE_FOP (state, fuse_lookup_cbk, GF_FOP_LOOKUP,