From a0c1de7c9cf41d37f95660fe45da66418e263340 Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Sat, 28 Mar 2009 14:17:55 +0530 Subject: 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 --- xlators/mount/fuse/src/fuse-bridge.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'xlators') 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; -- cgit