From b89e9348aed56c40fec1f8401230dd5a1965f235 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Wed, 22 Sep 2010 13:26:41 +0000 Subject: mount/fuse: generate gfid only in case of a fresh lookup Signed-off-by: Vijay Bellur Signed-off-by: Vijay Bellur BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971 --- xlators/mount/fuse/src/fuse-bridge.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 122304446ef..5d5eb63c74f 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -253,8 +253,6 @@ fuse_lookup (xlator_t *this, fuse_in_header_t *finh, void *msg) GET_STATE (this, finh, state); - uuid_generate (state->gfid); - ret = fuse_loc_fill (&state->loc, state, 0, finh->nodeid, name); if (ret < 0) { @@ -275,6 +273,7 @@ fuse_lookup (xlator_t *this, fuse_in_header_t *finh, void *msg) gf_log ("glusterfs-fuse", GF_LOG_TRACE, "%"PRIu64": LOOKUP %s", finh->unique, state->loc.path); + uuid_generate (state->gfid); } fuse_resolve_and_resume (state, fuse_lookup_resume); -- cgit