Skip to content

Commit 10327eb

Browse files
committed
libcontainer/specconv/spec_linux: Add support for (no)lazytime
Part of catching runC up with the spec, which punts valid options to mount(8) [1,2]. [1]: https://github.com/opencontainers/runtime-spec/blame/v1.0.0-rc5/config.md#L68 [2]: opencontainers/runtime-spec#771 Signed-off-by: W. Trevor King <[email protected]>
1 parent cf630c6 commit 10327eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcontainer/specconv/spec_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,11 +647,13 @@ func parseMountOptions(options []string) (int, []int, string, int) {
647647
"diratime": {true, unix.MS_NODIRATIME},
648648
"dirsync": {false, unix.MS_DIRSYNC},
649649
"exec": {true, unix.MS_NOEXEC},
650+
"lazytime": {false, unix.MS_LAZYTIME},
650651
"mand": {false, unix.MS_MANDLOCK},
651652
"noatime": {false, unix.MS_NOATIME},
652653
"nodev": {false, unix.MS_NODEV},
653654
"nodiratime": {false, unix.MS_NODIRATIME},
654655
"noexec": {false, unix.MS_NOEXEC},
656+
"nolazytime": {true, unix.MS_LAZYTIME},
655657
"nomand": {true, unix.MS_MANDLOCK},
656658
"norelatime": {true, unix.MS_RELATIME},
657659
"nostrictatime": {true, unix.MS_STRICTATIME},

0 commit comments

Comments
 (0)