diff options
author | Lantao Liu <lantaol@google.com> | 2018-06-18 10:33:06 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-06-18 10:34:11 -0700 |
commit | 821aaf531d62dc4f66078528901e536524951e3b (patch) | |
tree | f11a901e53e64959792065e96e1f12db42d29f92 | |
parent | 775982ed4b54230165c3d6e0ab7f4cceaa4860ba (diff) |
runsc: support "rw" mount option.
PiperOrigin-RevId: 201018483
Change-Id: I52fe3d01c83c8a2f0e9275d9d88c37e46fa224a2
-rw-r--r-- | runsc/boot/fs.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runsc/boot/fs.go b/runsc/boot/fs.go index 7786e4d4a..7ebf22de8 100644 --- a/runsc/boot/fs.go +++ b/runsc/boot/fs.go @@ -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 |