diff options
author | Fabricio Voznika <fvoznika@google.com> | 2021-06-09 15:51:03 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-09 15:53:44 -0700 |
commit | 1ca981f50f0b2ad273bbcb870bca21c4b1264504 (patch) | |
tree | 5c7be9aba6e67eaa35f80faafd82b66c4c3714a7 /runsc/cmd/gofer.go | |
parent | 2e574a9904cb51119abc015aea5bc45993fa32ec (diff) |
Remove --overlayfs-stale-read flag
It defaults to true and setting it to false can cause filesytem corruption.
PiperOrigin-RevId: 378518663
Diffstat (limited to 'runsc/cmd/gofer.go')
-rw-r--r-- | runsc/cmd/gofer.go | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/runsc/cmd/gofer.go b/runsc/cmd/gofer.go index 6a755ecb6..5ded7b946 100644 --- a/runsc/cmd/gofer.go +++ b/runsc/cmd/gofer.go @@ -473,14 +473,12 @@ func adjustMountOptions(conf *config.Config, path string, opts []string) ([]stri rv := make([]string, len(opts)) copy(rv, opts) - if conf.OverlayfsStaleRead { - statfs := unix.Statfs_t{} - if err := unix.Statfs(path, &statfs); err != nil { - return nil, err - } - if statfs.Type == unix.OVERLAYFS_SUPER_MAGIC { - rv = append(rv, "overlayfs_stale_read") - } + statfs := unix.Statfs_t{} + if err := unix.Statfs(path, &statfs); err != nil { + return nil, err + } + if statfs.Type == unix.OVERLAYFS_SUPER_MAGIC { + rv = append(rv, "overlayfs_stale_read") } return rv, nil } |