| Crates.io | linux_mount_options |
| lib.rs | linux_mount_options |
| version | 0.1.0 |
| created_at | 2020-07-22 22:15:26.233023+00 |
| updated_at | 2020-07-22 22:15:26.233023+00 |
| description | Detect file system, mount point and noatime of a folder the process has access to. |
| homepage | |
| repository | https://gitlab.com/dns2utf8/linux_mount_options |
| max_upload_size | |
| id | 268359 |
| size | 19,485 |
Detect file system, mount point and noatime of a folder the process has access to.
/proc/mountsFirst, 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.