Function check_disk::filter [−][src]
pub(crate) fn filter(
mounts: Vec<Mount>,
args: &Args
) -> Result<Vec<MountStat>, Error>
Convert Mounts into MountStats, applying filters from args
This:
- calls
statvfs
on every filesystem in/proc/mounts
- filters out dummy (0-block) and /proc filesystems
- Only shows one of any given
/dev/
filesystem’s mount points (the shortest, same as df) - Applies the
pattern
andtype
filters