summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot/vfs.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2021-06-09 15:51:03 -0700
committergVisor bot <gvisor-bot@google.com>2021-06-09 15:53:44 -0700
commit1ca981f50f0b2ad273bbcb870bca21c4b1264504 (patch)
tree5c7be9aba6e67eaa35f80faafd82b66c4c3714a7 /runsc/boot/vfs.go
parent2e574a9904cb51119abc015aea5bc45993fa32ec (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/boot/vfs.go')
-rw-r--r--runsc/boot/vfs.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/runsc/boot/vfs.go b/runsc/boot/vfs.go
index 7be5176b0..52aa33529 100644
--- a/runsc/boot/vfs.go
+++ b/runsc/boot/vfs.go
@@ -210,12 +210,10 @@ func (c *containerMounter) createMountNamespaceVFS2(ctx context.Context, conf *c
fd := c.fds.remove()
data := p9MountData(fd, conf.FileAccess, true /* vfs2 */)
- if conf.OverlayfsStaleRead {
- // We can't check for overlayfs here because sandbox is chroot'ed and gofer
- // can only send mount options for specs.Mounts (specs.Root is missing
- // Options field). So assume root is always on top of overlayfs.
- data = append(data, "overlayfs_stale_read")
- }
+ // We can't check for overlayfs here because sandbox is chroot'ed and gofer
+ // can only send mount options for specs.Mounts (specs.Root is missing
+ // Options field). So assume root is always on top of overlayfs.
+ data = append(data, "overlayfs_stale_read")
log.Infof("Mounting root over 9P, ioFD: %d", fd)
opts := &vfs.MountOptions{