Function mount
Source pub fn mount<P1: ?Sized + NixPath, P2: ?Sized + NixPath, P3: ?Sized + NixPath, P4: ?Sized + NixPath>(
source: Option<&P1>,
target: &P2,
fstype: Option<&P3>,
flags: MsFlags,
data: Option<&P4>,
) -> 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
.
fstype
- The file system type, e.g. ext4
.
flags
- Optional flags controlling the mount.
data
- Optional file system specific data.
§See Also
mount