diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-06-09 22:57:35 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-09 22:57:35 +0000 |
commit | 90b930bd751c22e6a615c5f71b306dc48568699b (patch) | |
tree | 80c3d39191ff16211b835d40d363a39f2a0eded7 /runsc/cmd | |
parent | 00125cc6294ce95742f0c17100ba8f51c07398f9 (diff) | |
parent | 1ca981f50f0b2ad273bbcb870bca21c4b1264504 (diff) |
Merge release-20210601.0-29-g1ca981f50 (automated)
Diffstat (limited to 'runsc/cmd')
-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 } |