lfs_core/lib.rs
1/*!
2
3Use `lfs_core::read_mounts` to get information on all mounted volumes on a unix system.
4
5```
6// get all mount points
7let options = lfs_core::ReadOptions::default();
8let mut mounts = lfs_core::read_mounts(&options).unwrap();
9// only keep the one with size stats
10mounts.retain(|m| m.stats.is_ok());
11// print them
12for mount in mounts {
13 dbg!(mount);
14}
15```
16
17The [lfs](https://github.com/Canop/lfs) application is a viewer for lfs-core and shows you the information you're expected to find in mounts.
18
19*/
20
21mod block_device;
22mod device_id;
23mod disk;
24mod error;
25mod inodes;
26mod label;
27mod mount;
28mod mountinfo;
29mod stats;
30mod sys;
31
32pub use {
33 block_device::*,
34 device_id::*,
35 disk::*,
36 error::*,
37 inodes::*,
38 label::*,
39 mount::*,
40 mountinfo::*,
41 stats::*,
42};