Recursive bind mount (#1332)
This commit is contained in:
@@ -152,7 +152,9 @@ fn bind_mount(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<()> {
|
|||||||
let tree = open_tree(
|
let tree = open_tree(
|
||||||
CWD,
|
CWD,
|
||||||
from.as_ref(),
|
from.as_ref(),
|
||||||
OpenTreeFlags::OPEN_TREE_CLOEXEC | OpenTreeFlags::OPEN_TREE_CLONE,
|
OpenTreeFlags::OPEN_TREE_CLOEXEC
|
||||||
|
| OpenTreeFlags::OPEN_TREE_CLONE
|
||||||
|
| OpenTreeFlags::AT_RECURSIVE,
|
||||||
)?;
|
)?;
|
||||||
move_mount(
|
move_mount(
|
||||||
tree.as_fd(),
|
tree.as_fd(),
|
||||||
|
|||||||
Reference in New Issue
Block a user