From 002d35bfb11f134749d456ed452d13e795bbc9da Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Mon, 5 Jul 2010 11:20:30 +0000 Subject: mount/fuse: Handle setting entry-timeout to 0. Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 1034 (rename() is not atomic) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1034 --- xlators/mount/fuse/src/fuse-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 682eb447e31..27f1aa8232a 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -3429,7 +3429,7 @@ init (xlator_t *this_xl) ret = dict_get_double (options, "entry-timeout", &priv->entry_timeout); - if (!priv->entry_timeout) + if (ret != 0) priv->entry_timeout = 1.0; /* default */ -- cgit