From 3ec73cb88e8a302e973f8d1a68bcaf3981512b20 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Mon, 5 Jul 2010 11:24:27 +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 096ca93df..4618a3785 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -3648,7 +3648,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