Skip to content

Commit

Permalink
Recursive bind mount (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 authored Feb 1, 2024
1 parent 64269c8 commit f80769a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion userspace/ksud/src/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ fn bind_mount(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<()> {
let tree = open_tree(
CWD,
from.as_ref(),
OpenTreeFlags::OPEN_TREE_CLOEXEC | OpenTreeFlags::OPEN_TREE_CLONE,
OpenTreeFlags::OPEN_TREE_CLOEXEC
| OpenTreeFlags::OPEN_TREE_CLONE
| OpenTreeFlags::AT_RECURSIVE,
)?;
move_mount(
tree.as_fd(),
Expand Down

0 comments on commit f80769a

Please sign in to comment.