linux_mount_options 0.1.0

Detect file system, mount point and noatime of a folder the process has access to.
Documentation
  • Coverage
  • 4.76%
    1 out of 21 items documented0 out of 7 items with examples
  • Size
  • Source code size: 18.96 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 642.23 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • dns2utf8/linux_mount_options
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dns2utf8

linux_mount_options

crates.io docs.rs

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

Requirements

  • Access to /proc/mounts
  • Linux tested
    • It should work on *BSD. However, it is not tested.

Example:

First, add it to your Cargo.toml:

[dependencies]
linux_mount_options = "0"

In your main.rs:

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.