runsc: support "rw" mount option.

PiperOrigin-RevId: 201018483
Change-Id: I52fe3d01c83c8a2f0e9275d9d88c37e46fa224a2
This commit is contained in:
Lantao Liu 2018-06-18 10:33:06 -07:00 committed by Shentubot
parent 775982ed4b
commit 821aaf531d
1 changed files with 3 additions and 1 deletions

View File

@ -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