diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-07-06 08:35:14 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-12 06:59:29 -0700 |
commit | e30c38b783c728182eb9cc478fabc7a7830c8efc (patch) | |
tree | 4eca48372bc289ad35cfbfd6d5d3b951213b47d9 /xlators | |
parent | 67f6fc6156cb14875600cd7e44d937587196e3b3 (diff) |
mnt/fuse: generate uuids in fuse_lookup, not in fuse_lookup_resume.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand Avati <avati@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 7a78ef277a7..9fc491bb7f1 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); |