From 6922f156d65e7426b90f6ae5ebf0fc87f162554c Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Thu, 3 Dec 2009 08:10:57 +0000 Subject: glusterfsd: Handle argument attribute-timeout when set to 0 Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 252 (client coherence problem with locks and truncate) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=252 --- glusterfsd/src/glusterfsd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'glusterfsd') diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 32c882a60dd..01855938e96 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -320,7 +320,7 @@ _add_fuse_mount (xlator_t *graph) "failed to set mount-point to options dictionary"); } - if (cmd_args->fuse_attribute_timeout) + if (cmd_args->fuse_attribute_timeout >= 0) ret = dict_set_double (top->options, ZR_ATTR_TIMEOUT_OPT, cmd_args->fuse_attribute_timeout); if (cmd_args->fuse_entry_timeout) @@ -1110,6 +1110,7 @@ main (int argc, char *argv[]) /* parsing command line arguments */ cmd_args->log_level = DEFAULT_LOG_LEVEL; cmd_args->fuse_direct_io_mode_flag = _gf_true; + cmd_args->fuse_attribute_timeout = -1; INIT_LIST_HEAD (&cmd_args->xlator_options); -- cgit