Skip to content

Commit

Permalink
libcontainer/specconv/spec_linux: Add support for (no)lazytime
Browse files Browse the repository at this point in the history
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 <wking@tremily.us>
  • Loading branch information
wking committed May 30, 2017
1 parent cf630c6 commit 10327eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcontainer/specconv/spec_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,11 +647,13 @@ func parseMountOptions(options []string) (int, []int, string, int) {
"diratime": {true, unix.MS_NODIRATIME},
"dirsync": {false, unix.MS_DIRSYNC},
"exec": {true, unix.MS_NOEXEC},
"lazytime": {false, unix.MS_LAZYTIME},
"mand": {false, unix.MS_MANDLOCK},
"noatime": {false, unix.MS_NOATIME},
"nodev": {false, unix.MS_NODEV},
"nodiratime": {false, unix.MS_NODIRATIME},
"noexec": {false, unix.MS_NOEXEC},
"nolazytime": {true, unix.MS_LAZYTIME},
"nomand": {true, unix.MS_MANDLOCK},
"norelatime": {true, unix.MS_RELATIME},
"nostrictatime": {true, unix.MS_STRICTATIME},
Expand Down

0 comments on commit 10327eb

Please sign in to comment.