Function nix::mount::mount

source ·
pub fn mount<P1: ?Sized + NixPath, P2: ?Sized + NixPath, P3: ?Sized + NixPath>(
    source: &P1,
    target: &P2,
    flags: MntFlags,
    data: Option<&P3>
) -> Result<()>
Available on crate feature mount only.
Expand description

Mount a file system.

§Arguments

  • source - Specifies the file system. e.g. /dev/sd0.
  • target - Specifies the destination. e.g. /mnt.
  • flags - Optional flags controlling the mount.
  • data - Optional file system specific data.

§see also

mount