pub fn is_whole_device(name: &str) -> bool
True for a device whose throughput is reported: a whole block device (it has a directory in /sys/block; a partition does not) that is not a loop, RAM or compressed-RAM device.
/sys/block