devela::_dep::rustix::mount

Function mount2

pub fn mount2<Source, Target, Fs>(
    source: Option<Source>,
    target: Target,
    file_system_type: Option<Fs>,
    flags: MountFlags,
    data: Option<&CStr>,
) -> Result<(), Errno> 
where Source: Arg, Target: Arg, Fs: Arg,
Available on crate feature dep_rustix only.
Expand description

mount2(source, target, filesystemtype, mountflags, data)

This is same as the mount, except it adds support for the source, target, and data being omitted, and the data is passed as a CStr rather than a path::Arg.

§References