diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-09-22 13:26:41 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-22 22:28:45 -0700 |
commit | b89e9348aed56c40fec1f8401230dd5a1965f235 (patch) | |
tree | 8f11e630cb136402649a68e6b889137be248c367 /xlators | |
parent | 5c4ac19e88f5d7954770aceed930ee193c4138b5 (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
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 3 |
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 122304446..5d5eb63c7 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); |