devela::_dep::nc

Function move_mount

pub unsafe fn move_mount<P>(
    from_dfd: i32,
    from_pathname: P,
    to_dfd: i32,
    to_pathname: P,
    flags: u32,
) -> Result<i32, i32> 
where P: AsRef<Path>,
Available on crate feature dep_nc only.
Expand description

Move a mount from one place to another.

In combination with fsopen()/fsmount() this is used to install a new mount and in combination with open_tree(OPEN_TREE_CLONE [| AT_RECURSIVE]) it can be used to copy a mount subtree.

Note the flags value is a combination of MOVE_MOUNT_* flags.