summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/user
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2020-05-28 19:14:26 -0700
committergVisor bot <gvisor-bot@google.com>2020-05-28 19:16:06 -0700
commit50844fee29aed500fff41f417f6183867ca0f0b5 (patch)
tree91d912aae4911b9fac0ccc555205e744778f5f6d /pkg/sentry/fs/user
parentf7418e21590e271302a3c375323950c209ce5ced (diff)
Split VFS.MountAt into VFS.MountDisconnected and VFS.ConnectMountAt.
This makes it straightforward to create bind mounts internally in VFS2: Given a bind mount root represented by vfs.VirtualDentry vd: - Create a new mount with VFS.NewDisconnectedMount(vd.Mount().Filesystem(), vd.Dentry()). - Connect the resulting mount in the appropriate namespace with VFS.ConnectMountAt(). Note that the resulting bind mount is non-recursive; recursive bind mounting requires explicitly duplicating all children of the original mount, which is best handled internally by VFS. Updates #179 PiperOrigin-RevId: 313703963
Diffstat (limited to 'pkg/sentry/fs/user')
0 files changed, 0 insertions, 0 deletions