Crate bootc_internal_blockdev

Crate bootc_internal_blockdev 

Source

Structs§

Device
DevicesOutput 🔒
LoopbackCleanupHandle 🔒
Handle to manage the cleanup helper process for loopback devices
LoopbackDevice
Partition
PartitionTable
SfDiskOutput 🔒

Enums§

PartitionType

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 device capable 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.