summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-03-28 14:17:55 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-03-28 16:13:25 +0530
commita0c1de7c9cf41d37f95660fe45da66418e263340 (patch)
treeb7de6cc9d5a3e1bfc59ec7f147721bc54fd4cb53 /xlators
parent3276e650f8af676ed602279f4be85d053aa6065d (diff)
first call of fuse is INIT internal call, and not first system call. 2nd call is the system call where first_lookup() has to be done.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index d6dbf7604..17762da17 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -2558,7 +2558,11 @@ fuse_thread_proc (void *data)
chan_size);
if (priv->first_call) {
- fuse_root_lookup (this);
+ if (priv->first_call > 2) {
+ priv->first_call--;
+ } else {
+ fuse_root_lookup (this);
+ }
}
if (res == -1) {
@@ -2869,7 +2873,7 @@ init (xlator_t *this_xl)
this_xl->ctx->top = this_xl;
- priv->first_call = 1;
+ priv->first_call = 2;
this_xl->itable = inode_table_new (0, this_xl);
return 0;