Skip to content

Commit

Permalink
libcontainer/specconv/spec_linux: Add support for (no)iversion
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 c3f2f16 commit da435c7
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,13 +647,15 @@ func parseMountOptions(options []string) (int, []int, string, int) {
"diratime": {true, unix.MS_NODIRATIME},
"dirsync": {false, unix.MS_DIRSYNC},
"exec": {true, unix.MS_NOEXEC},
"iversion": {false, unix.MS_I_VERSION},
"lazytime": {false, unix.MS_LAZYTIME},
"loud": {true, unix.MS_SILENT},
"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},
"noiversion": {true, unix.MS_I_VERSION},
"nolazytime": {true, unix.MS_LAZYTIME},
"nomand": {true, unix.MS_MANDLOCK},
"norelatime": {true, unix.MS_RELATIME},
Expand Down

0 comments on commit da435c7

Please sign in to comment.