runsc: support "rw" mount option.
PiperOrigin-RevId: 201018483 Change-Id: I52fe3d01c83c8a2f0e9275d9d88c37e46fa224a2
This commit is contained in:
parent
775982ed4b
commit
821aaf531d
|
@ -392,12 +392,14 @@ func mountFlags(opts []string) fs.MountSourceFlags {
|
|||
mf := fs.MountSourceFlags{}
|
||||
for _, o := range opts {
|
||||
switch o {
|
||||
case "rw":
|
||||
mf.ReadOnly = false
|
||||
case "ro":
|
||||
mf.ReadOnly = true
|
||||
case "noatime":
|
||||
mf.NoAtime = true
|
||||
default:
|
||||
log.Warningf("ignorning unknown mount option %q", o)
|
||||
log.Warningf("ignoring unknown mount option %q", o)
|
||||
}
|
||||
}
|
||||
return mf
|
||||
|
|
Loading…
Reference in New Issue