Skip to content

Commit f5103d3

Browse files
committed
config: Add new Extensions flag to support custom mount options in runc
Also, defines a EXT_COPYUP flag for supporting tmpfs copyup operation. Signed-off-by: Mrunal Patel <[email protected]>
1 parent 799911a commit f5103d3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

libcontainer/configs/mount.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
package configs
22

3+
const (
4+
// EXT_COPYUP is a directive to copy up the contents of a directory when
5+
// a tmpfs is mounted over it.
6+
EXT_COPYUP = 1 << iota
7+
)
8+
39
type Mount struct {
410
// Source path for the mount.
511
Source string `json:"source"`
@@ -22,6 +28,9 @@ type Mount struct {
2228
// Relabel source if set, "z" indicates shared, "Z" indicates unshared.
2329
Relabel string `json:"relabel"`
2430

31+
// Extensions are additional flags that are specific to runc.
32+
Extensions int `json:"extensions"`
33+
2534
// Optional Command to be run before Source is mounted.
2635
PremountCmds []Command `json:"premount_cmds"`
2736

0 commit comments

Comments
 (0)