summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2009-12-03 08:10:57 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-03 11:49:06 -0800
commit6922f156d65e7426b90f6ae5ebf0fc87f162554c (patch)
treeb5b1fcd423f6044c77ccd7eaee8135850c5cc3d6 /glusterfsd
parent3208d63c0ffd1735bc95c6986b2a3ddd96ba71d6 (diff)
glusterfsd: Handle argument attribute-timeout when set to 0
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 252 (client coherence problem with locks and truncate) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=252
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c3
1 files changed, 2 insertions, 1 deletions
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);