summaryrefslogtreecommitdiff
path: root/src/minutils
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-04-13 13:08:11 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-04-13 13:08:11 +0000
commitdd7f84d8d843dc7f4915649d2a5116b7d319621e (patch)
treed57d9346fcf3b03911425d42108d5d5e0cbadd68 /src/minutils
parent566007e587294343a2ac3cb6fe7727d8fe355340 (diff)
downloads6-linux-utils-dd7f84d8d843dc7f4915649d2a5116b7d319621e.tar.xz
Add missing flag options to s6-mount
Diffstat (limited to 'src/minutils')
-rw-r--r--src/minutils/s6-mount.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/minutils/s6-mount.c b/src/minutils/s6-mount.c
index fe218c2..382a0c4 100644
--- a/src/minutils/s6-mount.c
+++ b/src/minutils/s6-mount.c
@@ -42,10 +42,27 @@ static void scanopt (stralloc *data, unsigned long *flags, char const *opt)
CASE("atime") { *flags &= ~MS_NOATIME ; break ; }
CASE("nodiratime") { *flags |= MS_NODIRATIME ; break ; }
CASE("diratime") { *flags &= ~MS_NODIRATIME ; break ; }
+ CASE("strictatime") { *flags |= MS_STRICTATIME ; break ; }
+ CASE("nostrictatime") { *flags &= ~MS_STRICTATIME ; break ; }
CASE("bind") { *flags |= MS_BIND ; break ; }
CASE("nobind") { *flags &= ~MS_BIND ; break ; }
CASE("move") { *flags |= MS_MOVE ; break ; }
CASE("nomove") { *flags &= ~MS_MOVE ; break ; }
+ CASE("dirsync") { *flags |= MS_DIRSYNC ; break ; }
+ CASE("nodirsync") { *flags &= ~MS_DIRSYNC ; break ; }
+ CASE("mandlock") { *flags |= MS_MANDLOCK ; break ; }
+ CASE("nomandlock") { *flags &= ~MS_MANDLOCK ; break ; }
+ CASE("silent") { *flags |= MS_SILENT ; break ; }
+ CASE("nosilent") { *flags &= ~MS_SILENT ; break ; }
+#ifdef MS_LAZYTIME
+ CASE("lazytime") { *flags |= MS_LAZYTIME ; break ; }
+ CASE("nolazytime") { *flags &= ~MS_LAZYTIME ; break ; }
+#endif
+
+ CASE("shared") { *flags &= ~(MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE) ; *flags |= MS_SHARED ; break ; }
+ CASE("private") { *flags &= ~(MS_SHARED | MS_SLAVE | MS_UNBINDABLE) ; *flags |= MS_PRIVATE ; break ; }
+ CASE("slave") { *flags &= ~(MS_SHARED | MS_PRIVATE | MS_UNBINDABLE) ; *flags |= MS_SLAVE ; break ; }
+ CASE("unbindable") { *flags &= ~(MS_SHARED | MS_PRIVATE | MS_SLAVE) ; *flags |= MS_UNBINDABLE ; break ; }
if ((data->s && data->len && !stralloc_catb(data, ",", 1)) || !stralloc_catb(data, opt, n))
strerr_diefu1sys(111, "build data string") ;