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
statvfson 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
patternandtypefilters