Structs§
- Disk
- Mount
- Part
Table Kernel - Device nodes for partitionable kernel devices, managed by the kernel.
- Part
Table Kpartx - Device nodes for non-partitionable kernel devices, managed by running kpartx to parse the partition table and create device-mapper devices for each partition.
- Partition
- Saved
Partitions
Traits§
- Part
Table - A handle to the set of device nodes for individual partitions of a device. Must be held as long as the device nodes are needed; they might be removed upon drop.
Functions§
- blkid_
single - detect_
formatted_ sector_ size - Inspect a buffer from the start of a disk image and return its formatted sector size, if any can be determined.
- find_
colocated_ esps - Find ESP partitions which sit at the same hierarchy level as
device. - find_
efi_ vendor_ dir - This is basically a Rust version of: https://github.com/coreos/coreos-assembler/blob/d3c7ec094a02/src/cmd-buildextend-live#L492-L495
- 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. - get_
blkdev_ deps - get_
blkdev_ deps_ recursing - get_
block_ device_ size - Get the size of a block device.
- get_
filesystems_ with_ label - Returns filesystems with given label. If multiple filesystems with the label have the same UUID, we only return one of them.
- get_
gpt_ size - Get the size of the GPT metadata at the start of the disk.
- get_
sector_ size - Get the logical sector size of a block device.
- get_
sector_ size_ for_ path - Get the sector size of the block device at a given path.
- have_
udev - is_dasd
- Checks if underlying device is IBM DASD disk
- lsblk
- lsblk_
single - udev_
settle