Skip to main content Crate bootc_internal_blockdev Copy item path Source Device DevicesOutput ๐ LoopbackCleanupHandle ๐ Handle to manage the cleanup helper process for loopback devices LoopbackDevice BIOS_BOOT BIOS boot partition type GUID for GPT ESP EFI System Partition (ESP) for UEFI boot on GPT ESP_ID_MBR MBR partition type IDs that indicate an EFI System Partition.
0x06 is FAT16 (used as ESP on some MBR systems), 0xEF is the
explicit EFI System Partition type.
Refer to https://en.wikipedia.org/wiki/Partition_type ZFS_SUPER_MAGIC ๐ The statfs magic of ZFS (ZFS_SUPER_MAGIC in OpenZFS), which libc lacks. blkid_probe ๐ Probe a device with blkid -p and return all discovered properties
as key-value pairs. have_udev ๐ Check whether the udev database is accessible (cached for the process lifetime). is_block_backed ๐ Whether a filesystem with the given st_dev and statfs magic is backed by
a block device. is_dir_backing_device_ro Determine whether the block device backing the filesystem mounted at the
given directory is physically read-only. list_dev list_dev_by_dir List the device containing the filesystem mounted at the given directory. list_dev_by_dir_optional List the device containing the filesystem mounted at the given directory,
or None if that filesystem is not backed by a block device (such as
virtiofs, NFS, tmpfs or overlayfs). list_dev_for_zfs_dataset ๐ parse_partition_number_from_suffix ๐ Extract a partition number by stripping the parent device path from the
ESP partition device path, then skipping any non-digit separator characters. parse_size_mib Parse a string into mibibytes run_loopback_cleanup_helper Main function for the loopback cleanup helper process
This function does not return - it either exits normally or via signal