Registry / other / sys-mount

sys-mount

JSON →
library3.1.0rscratesunverified

High level FFI binding around the sys mount and umount2 calls.

# Cargo.toml [dependencies] sys-mount = "3.1.0"
INSTALL
IMPORT
SIG · SYS-MOUNT
S
sys-mount
otherrustv3.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mount
use sys_mount::Mount;

Mounts a filesystem using sys-mount.

use sys_mount::Mount; fn main() -> Result<(), Box<dyn std::error::Error>> { let mount = Mount::new("/dev/sda1", "/mnt", "ext4", sys_mount::MsFlags::empty(), None)?; println!("Mounted successfully"); Ok(()) }
Debug
Known issues
gotchaRequires root privileges or appropriate capabilities to mount.
fix
Run the program with sudo or ensure proper permissions.
affects: >=0.0.0
Upgrade
Version history
3.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
sys-mount — cargo add sys-mount · libregistry