Structs§
- Device
- Devices
Output 🔒 - Loopback
Cleanup 🔒Handle - Handle to manage the cleanup helper process for loopback devices
- Loopback
Device - Partition
- Partition
Table - SfDisk
Output 🔒
Enums§
Constants§
- ESP
- EFI System Partition (ESP) for UEFI boot on GPT
- ESP_
ID_ MBR - EFI System Partition (ESP) on MBR Refer to https://en.wikipedia.org/wiki/Partition_type
Functions§
- find_
parent_ devices - This is a bit fuzzy, but… this function will return every block device in the parent
hierarchy of
devicecapable of containing other partitions. So e.g. parent devices of type “part” doesn’t match, but “disk” and “mpath” does. - list_
dev - parse_
size_ mib - Parse a string into mibibytes
- partitions_
of - run_
loopback_ cleanup_ helper - Main function for the loopback cleanup helper process This function does not return - it either exits normally or via signal
- split_
lsblk_ 🔒line - Parse key-value pairs from lsblk –pairs. Newer versions of lsblk support JSON but the one in CentOS 7 doesn’t.