MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / mount_move

Function mount_move

src/mount/mount_unmount.rs:156–171  ·  view source on GitHub ↗
(
    source: Source,
    target: Target,
)

Source from the content-addressed store, hash-verified

154#[doc(alias = "mount")]
155#[doc(alias = "MS_MOVE")]
156pub fn mount_move<Source: path::Arg, Target: path::Arg>(
157 source: Source,
158 target: Target,
159) -> io::Result<()> {
160 source.into_with_c_str(|source| {
161 target.into_with_c_str(|target| {
162 backend::mount::syscalls::mount(
163 Some(source),
164 target,
165 None,
166 MountFlagsArg(InternalMountFlags::MOVE.bits()),
167 None,
168 )
169 })
170 })
171}
172
173/// `umount2(target, flags)`
174///

Callers

nothing calls this directly

Calls 3

into_with_c_strMethod · 0.80
mountFunction · 0.70
MountFlagsArgClass · 0.50

Tested by

no test coverage detected