aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-07-08 01:12:59 +0200
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-07-08 01:46:30 +0200
commit79b446d22ce8cfb387549bef2a0ddcaf6fbb3331 (patch)
tree4d7eaa32723ff05387125e18eef5ca2931ffe9e1 /lib
parent77e9e15244c7756ea966a11d169ca76e655d142d (diff)
Fixed description of struct fuse_conn_info->time_gran
At least on Linux kernel 4.9, a value of zero gives more than 1-sec accuracy.
Diffstat (limited to 'lib')
-rw-r--r--lib/fuse_lowlevel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index c1c573f..ccdb5a5 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -1919,7 +1919,8 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
LL_SET_DEFAULT(se->op.flock, FUSE_CAP_FLOCK_LOCKS);
LL_SET_DEFAULT(se->op.readdirplus, FUSE_CAP_READDIRPLUS);
LL_SET_DEFAULT(se->op.readdirplus, FUSE_CAP_READDIRPLUS_AUTO);
-
+ se->conn.time_gran = 1;
+
if (bufsize < FUSE_MIN_READ_BUFFER) {
fprintf(stderr, "fuse: warning: buffer size too small: %zu\n",
bufsize);