summaryrefslogtreecommitdiffstats
path: root/fs/Makefile
diff options
context:
space:
mode:
authorDavid Howells2018-11-05 18:40:31 +0100
committerAl Viro2019-03-20 23:49:06 +0100
commit44dfd84a6d54a675e35ab618d9fab47b36cb78cd (patch)
tree6b5542f217686066119c9bdfed2182e2c2a6d4a9 /fs/Makefile
parentvfs: syscall: Add move_mount(2) to move mounts around (diff)
downloadkernel-qcow2-linux-44dfd84a6d54a675e35ab618d9fab47b36cb78cd.tar.gz
kernel-qcow2-linux-44dfd84a6d54a675e35ab618d9fab47b36cb78cd.tar.xz
kernel-qcow2-linux-44dfd84a6d54a675e35ab618d9fab47b36cb78cd.zip
teach move_mount(2) to work with OPEN_TREE_CLONE
Allow a detached tree created by open_tree(..., OPEN_TREE_CLONE) to be attached by move_mount(2). If by the time of final fput() of OPEN_TREE_CLONE-opened file its tree is not detached anymore, it won't be dissolved. move_mount(2) is adjusted to handle detached source. That gives us equivalents of mount --bind and mount --rbind. Thanks also to Alan Jenkins <alan.christopher.jenkins@gmail.com> for providing a whole bunch of ways to break things using this interface. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/Makefile')
0 files changed, 0 insertions, 0 deletions