pub fn read_disk_counters(root: &Path) -> DiskCountersExpand description
Read host-wide disk counters from /proc/diskstats.
The authoritative “is this a whole disk” test is the presence of
/sys/block/<name>; it is consulted per device, because /proc/diskstats
mixes disks and partitions in one file. When /sys is not readable (a
fixture tree, a container) the name heuristic is used instead.