1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
/*!
Use `lfs_core::read_mounts` to get information on all mounted volumes on a unix system.
```
// get all mount points
let mut mounts = lfs_core::read_mounts().unwrap();
// only keep the one with size stats
mounts.retain(|m| m.stats.is_some());
// print them
for mount in mounts {
dbg!(mount);
}
```
The [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.
*/
mod block_device;
mod device_id;
mod disk;
mod error;
mod label;
mod mount;
mod mountinfo;
mod stats;
mod sys;
pub use {
block_device::{BlockDevice, BlockDeviceList},
device_id::DeviceId,
disk::Disk,
error::{Error, Result},
label::{read_labels, Labelling},
mount::{read_mounts, Mount},
mountinfo::{read_mountinfo, MountId, MountInfo},
stats::Stats,
};