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

Function mount_remount

src/mount/mount_unmount.rs:56–72  ·  view source on GitHub ↗
(
    target: Target,
    flags: MountFlags,
    data: Data,
)

Source from the content-addressed store, hash-verified

54#[doc(alias = "mount")]
55#[doc(alias = "MS_REMOUNT")]
56pub fn mount_remount<Target: path::Arg, Data: path::Arg>(
57 target: Target,
58 flags: MountFlags,
59 data: Data,
60) -> io::Result<()> {
61 target.into_with_c_str(|target| {
62 data.into_with_c_str(|data| {
63 backend::mount::syscalls::mount(
64 None,
65 target,
66 None,
67 MountFlagsArg(InternalMountFlags::REMOUNT.bits() | flags.bits()),
68 Some(data),
69 )
70 })
71 })
72}
73
74/// `mount(source, target, NULL, MS_BIND, NULL)`
75///

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