diff options
author | Bernd Schubert <bschubert@ddn.com> | 2023-03-18 19:51:42 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2023-03-19 15:13:57 +0000 |
commit | 1e66c92153d4300162f3125d06b41de0cc6ae599 (patch) | |
tree | 49d4034e9be3e5a4e1d402b22fc6086d9ffb9c50 | |
parent | b45d66cafb3b8de191d44b3a5705637319f7a552 (diff) | |
download | fuse-1e66c92153d4300162f3125d06b41de0cc6ae599.tar.gz |
Add more time mount options
These are especially needed for xfstests, but also
useful in general.
-rw-r--r-- | lib/mount.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/mount.c b/lib/mount.c index bda3c47..8561d5c 100644 --- a/lib/mount.c +++ b/lib/mount.c @@ -112,6 +112,14 @@ static const struct fuse_opt fuse_mount_opts[] = { FUSE_OPT_KEY("dirsync", KEY_KERN_FLAG), FUSE_OPT_KEY("atime", KEY_KERN_FLAG), 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("relatime", KEY_KERN_FLAG), + FUSE_OPT_KEY("norelatime", KEY_KERN_FLAG), + FUSE_OPT_KEY("strictatime", KEY_KERN_FLAG), + FUSE_OPT_KEY("nostrictatime", KEY_KERN_FLAG), FUSE_OPT_END }; @@ -151,6 +159,14 @@ static const struct mount_flags mount_flags[] = { {"sync", MS_SYNCHRONOUS, 1}, {"atime", MS_NOATIME, 0}, {"noatime", MS_NOATIME, 1}, + {"diratime", MS_NODIRATIME, 0}, + {"nodiratime", MS_NODIRATIME, 1}, + {"lazytime", MS_LAZYTIME, 1}, + {"nolazytime", MS_LAZYTIME, 0}, + {"relatime", MS_RELATIME, 1}, + {"norelatime", MS_RELATIME, 0}, + {"strictatime", MS_STRICTATIME, 1}, + {"nostrictatime", MS_STRICTATIME, 0}, #ifndef __NetBSD__ {"dirsync", MS_DIRSYNC, 1}, #endif |