Skip to main content

Module disk

Module disk 

Source

Structsยง

DeviceInfo ๐Ÿ”’
DiskCollector
Snapshot ๐Ÿ”’

Constantsยง

SECTOR_BYTES ๐Ÿ”’

Functionsยง

block_attr ๐Ÿ”’
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 ๐Ÿ”’

Type Aliasesยง

Result ๐Ÿ”’