summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src/fuse-bridge.c
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-10-22 11:32:40 +0530
committerVijay Bellur <vijay@gluster.com>2011-10-28 05:00:54 -0700
commitae78820311fc95047195735b1519fa4d626de208 (patch)
treef327c1d1cfb58c8dfad44f794950bc9dbc4c35a4 /xlators/mount/fuse/src/fuse-bridge.c
parentb3d696f78b16f246bd34f87aafb52317033408cc (diff)
mount/fuse: set gfid in lookup after a failed revalidate lookup
Change-Id: I1904aa63d9365ebda3e979449454ac08db85d93d BUG: 3747 Reviewed-on: http://review.gluster.com/636 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
Diffstat (limited to 'xlators/mount/fuse/src/fuse-bridge.c')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 70aac385f10..78bed048058 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -220,6 +220,9 @@ fuse_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
inode_unref (state->loc.inode);
state->loc.inode = inode_new (itable);
state->is_revalidate = 2;
+ if (uuid_is_null (state->gfid))
+ uuid_generate (state->gfid);
+ fuse_gfid_set (state);
STACK_WIND (frame, fuse_lookup_cbk,
prev->this, prev->this->fops->lookup,