From 81ad52c7dbed9b0d228e9d028b6f6ab800bd1a68 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Sun, 19 Mar 2023 22:12:36 +0100 Subject: Add more time mount options to fusermount / fix lazytime Previous patch had forgotten fusermount. And also had "lazyatime" instead of "lazytime". --- lib/mount.c | 4 ++-- util/fusermount.c | 8 ++++++++ 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} }; -- cgit v1.2.1