summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-01-24 06:57:08 +0000
committerLaurent Bercot <ska@appnovation.com>2023-01-24 06:57:08 +0000
commita7f643c1131cb0f3552bb816def240f93d5b9392 (patch)
treefdbfa259b14ca5a5989d62df353df9b16d056b58
parentaeddcbc56d9592b544ea3a1a5df4bd2fa372f9c3 (diff)
downloads6-linux-utils-a7f643c1131cb0f3552bb816def240f93d5b9392.tar.xz
s6-mount: add support for relatime/norelatime options
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/minutils/s6-mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/minutils/s6-mount.c b/src/minutils/s6-mount.c
index 06064e4..428bda4 100644
--- a/src/minutils/s6-mount.c
+++ b/src/minutils/s6-mount.c
@@ -44,6 +44,8 @@ static void scanopt (stralloc *data, unsigned long *flags, char const *opt)
CASE("diratime") { *flags &= ~MS_NODIRATIME ; break ; }
CASE("strictatime") { *flags |= MS_STRICTATIME ; break ; }
CASE("nostrictatime") { *flags &= ~MS_STRICTATIME ; break ; }
+ CASE("relatime") { *flags |= MS_RELATIME ; break ; }
+ CASE("norelatime") { *flags &= ~MS_RELATIME ; break ; }
CASE("bind") { *flags |= MS_BIND ; break ; }
CASE("nobind") { *flags &= ~MS_BIND ; break ; }
CASE("move") { *flags |= MS_MOVE ; break ; }