summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-09-22 13:26:41 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-22 22:28:45 -0700
commitb89e9348aed56c40fec1f8401230dd5a1965f235 (patch)
tree8f11e630cb136402649a68e6b889137be248c367
parent5c4ac19e88f5d7954770aceed930ee193c4138b5 (diff)
mount/fuse: generate gfid only in case of a fresh lookup
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c3
1 files changed, 1 insertions, 2 deletions
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);