Skip to main content Module disk Copy item path Source DeviceInfo ๐ DiskCollector Snapshot ๐ SECTOR_BYTES ๐ block_attr ๐ collect_zfs_spaces ๐ Collect space stats for every imported ZFS pool via zpool list -Hp. dev_root_is_on_device ๐ Return true if /dev/root (a root-partition alias used by Ubuntu/AWS and
similar cloud images) belongs to device_name. device_source_prefixes ๐ Build the list of source-path prefixes to look for in /proc/mounts for
a given block device. discover_devices ๐ Discover all whole-disk block devices from /sys/block/ and cache their
static identity. Called once in DiskCollector::new(). mounts_for_device ๐ Read /proc/mounts and return filesystem space for all mount points whose
source device path starts with /dev/<device_name> (covers partitions too). read_device_info ๐ statvfs_space ๐ sysfs_read ๐ zfs_pool_mount_map ๐ Build a pool-name โ shallowest-mount-point map from /proc/mounts.
The root dataset (source with no /) is preferred; the dataset with the
fewest path components (shallowest) is used when multiple datasets match. Result ๐