Function fuse::mount::mount

source ·
pub fn mount<P: AsRef<OsStr>>(
    mountpoint: P,
    name: &str,
    flags: c_ulong,
    options: &[MountOption<'_>]
) -> Result<(), Error>
Expand description

Initiates a FUSE mount at mountpoint directory with flags and options via mount(2). The caller should provide a file descriptor (backed by /dev/fuse) with MountOption::FD. After this function completes, the FUSE filesystem can start to handle the requests, e.g. via fuse::worker::start_message_loop().

This operation requires CAP_SYS_ADMIN privilege, but the privilege can be dropped afterward.