diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-04-13 13:08:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-04-13 13:08:11 +0000 |
commit | dd7f84d8d843dc7f4915649d2a5116b7d319621e (patch) | |
tree | d57d9346fcf3b03911425d42108d5d5e0cbadd68 | |
parent | 566007e587294343a2ac3cb6fe7727d8fe355340 (diff) | |
download | s6-linux-utils-dd7f84d8d843dc7f4915649d2a5116b7d319621e.tar.gz s6-linux-utils-dd7f84d8d843dc7f4915649d2a5116b7d319621e.tar.xz s6-linux-utils-dd7f84d8d843dc7f4915649d2a5116b7d319621e.zip |
Add missing flag options to s6-mount
-rw-r--r-- | src/minutils/s6-mount.c | 17 |
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") ; |