Expand description
Use lfs_core::read_mounts to get information on all mounted volumes.
// get all mount points
let options = lfs_core::ReadOptions::default();
let mut mounts = lfs_core::read_mounts(&options).unwrap();
// only keep the one with size stats
mounts.retain(|m| m.stats.is_ok());
// print them
for mount in mounts {
dbg!(mount);
}The dysk application is a viewer for lfs-core and shows you the information you’re expected to find in mounts.
Structs§
- Device
Id - Id of a volume, can be found using GetVolumeInformationW
- Disk
- what we have most looking like a physical device
- Inodes
- inode information
- Labelling
- the labelling of a file-system, that is the pair (label, fs)
- Mount
- A mount point
- Mount
Info - A mount point as described in /proc/self/mountinfo
- Mount
Option - Parse
Device IdError - Parse
Strategy Error - Read
Options - Stats
- inode & storage usage information
Enums§
- Error
- lfs error type
- Stats
Error - Strategy
Functions§
- get_
label - read_
mounts - Read all the mount points and load basic information on them
- volume_
serial_ for_ path - Get a volume serial number for a provided root path
Type Aliases§
- MountId
- An id of a mount