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

Function mount_bind_recursive

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

Source from the content-addressed store, hash-verified

107#[doc(alias = "mount")]
108#[doc(alias = "MS_REC")]
109pub fn mount_bind_recursive<Source: path::Arg, Target: path::Arg>(
110 source: Source,
111 target: Target,
112) -> io::Result<()> {
113 source.into_with_c_str(|source| {
114 target.into_with_c_str(|target| {
115 backend::mount::syscalls::mount(
116 Some(source),
117 target,
118 None,
119 MountFlagsArg(MountFlags::BIND.bits() | MountPropagationFlags::REC.bits()),
120 None,
121 )
122 })
123 })
124}
125
126/// `mount(NULL, target, NULL, mountflags, NULL)`
127///

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