linuxmountoptions

crates.io docs.rs

Detect file system, mount point and noatime of a folder the process has access to.

Requirements

Example:

First, add it to your Cargo.toml:

yaml [dependencies] linux_mount_options = "0"

In your main.rs:

rust fn main() -> Result<(), Box<dyn Error>> { let path = "/home"; let info = linux_mount_options::detect(&path)?; println!("{}: {:?}", path, info); Ok( () ) }

If you are using logging based on the log infrastructure you will get timestamped and formatted output.