aboutsummaryrefslogtreecommitdiff
path: root/fs/fhandle.c
diff options
context:
space:
mode:
authorDavid Howells2018-11-05 17:40:31 +0000
committerAl Viro2019-03-20 18:49:06 -0400
commit44dfd84a6d54a675e35ab618d9fab47b36cb78cd (patch)
tree6b5542f217686066119c9bdfed2182e2c2a6d4a9 /fs/fhandle.c
parent2db154b3ea8e14b04fee23e3fdfd5e9d17fbc6ae (diff)
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/fhandle.c')
0 files changed, 0 insertions, 0 deletions