summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2023-03-19 22:12:36 +0100
committerNikolaus Rath <Nikolaus@rath.org>2023-03-20 09:00:14 +0000
commit81ad52c7dbed9b0d228e9d028b6f6ab800bd1a68 (patch)
tree7e620f985cceeb2aac7862d255b26f8cfda1f4d8
parent1e66c92153d4300162f3125d06b41de0cc6ae599 (diff)
downloadfuse-81ad52c7dbed9b0d228e9d028b6f6ab800bd1a68.tar.gz
Add more time mount options to fusermount / fix lazytime
Previous patch had forgotten fusermount. And also had "lazyatime" instead of "lazytime".
-rw-r--r--lib/mount.c4
-rw-r--r--util/fusermount.c8
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/mount.c b/lib/mount.c
index 8561d5c..1f1ee86 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -114,8 +114,8 @@ static const struct fuse_opt fuse_mount_opts[] = {
FUSE_OPT_KEY("noatime", KEY_KERN_FLAG),
FUSE_OPT_KEY("diratime", KEY_KERN_FLAG),
FUSE_OPT_KEY("nodiratime", KEY_KERN_FLAG),
- FUSE_OPT_KEY("lazyatime", KEY_KERN_FLAG),
- FUSE_OPT_KEY("nolazyatime", KEY_KERN_FLAG),
+ FUSE_OPT_KEY("lazytime", KEY_KERN_FLAG),
+ FUSE_OPT_KEY("nolazytime", KEY_KERN_FLAG),
FUSE_OPT_KEY("relatime", KEY_KERN_FLAG),
FUSE_OPT_KEY("norelatime", KEY_KERN_FLAG),
FUSE_OPT_KEY("strictatime", KEY_KERN_FLAG),
diff --git a/util/fusermount.c b/util/fusermount.c
index 50989eb..6e72f0d 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -594,6 +594,14 @@ static struct mount_flags mount_flags[] = {
{"sync", MS_SYNCHRONOUS, 1, 1},
{"atime", MS_NOATIME, 0, 1},
{"noatime", MS_NOATIME, 1, 1},
+ {"diratime", MS_NODIRATIME, 0, 1},
+ {"nodiratime", MS_NODIRATIME, 1, 1},
+ {"lazytime", MS_LAZYTIME, 1, 1},
+ {"nolazytime", MS_LAZYTIME, 0, 1},
+ {"relatime", MS_RELATIME, 1, 1},
+ {"norelatime", MS_RELATIME, 0, 1},
+ {"strictatime", MS_STRICTATIME, 1, 1},
+ {"nostrictatime", MS_STRICTATIME, 0, 1},
{"dirsync", MS_DIRSYNC, 1, 1},
{NULL, 0, 0, 0}
};