diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-07-07 07:19:36 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-07-07 06:03:51 -0700 |
commit | 1f74b2aab32d2386236ced19e6f391ba1dfb64a9 (patch) | |
tree | 6529ae7e7163786256390705c1b566615d04f6c0 /xlators | |
parent | 0745a11bc723be5a7b8693afa00fd19ea137063e (diff) |
mnt/fuse: generate uuids in fuse_lookup, not in fuse_lookup_resume.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Vijay Bellur <vijay@gluster.com>
BUG: 3041 ([glusterfs-3.1.5qa2]: stat gives EINVAL)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3041
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 5a30b8b54..bd98f55ec 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -251,7 +251,6 @@ fuse_lookup_resume (fuse_state_t *state) gf_log ("glusterfs-fuse", GF_LOG_TRACE, "%"PRIu64": LOOKUP %s", state->finh->unique, state->loc.path); - uuid_generate (state->gfid); state->loc.inode = inode_new (state->loc.parent->table); } @@ -280,6 +279,8 @@ fuse_lookup (xlator_t *this, fuse_in_header_t *finh, void *msg) if (state->loc.inode) { uuid_copy (state->resolve.gfid, state->loc.inode->gfid); + } else { + uuid_generate (state->gfid); } uuid_copy (state->resolve.pargfid, state->loc.parent->gfid); |