From 821aaf531d62dc4f66078528901e536524951e3b Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Mon, 18 Jun 2018 10:33:06 -0700 Subject: runsc: support "rw" mount option. PiperOrigin-RevId: 201018483 Change-Id: I52fe3d01c83c8a2f0e9275d9d88c37e46fa224a2 --- runsc/boot/fs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3