diff options
author | Anand Avati <avati@redhat.com> | 2012-04-06 11:17:34 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-04-11 09:55:03 -0700 |
commit | f56404a3358c799f907f36aecedf774b1875a56c (patch) | |
tree | c917fe64d6876ae7c5227e37e95b4fd917bfb52a | |
parent | 7f5c1e5777d77570be0f9698de39d2f1905c509f (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>
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 3 |
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 bf25c9679..c9f7c8940 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, |