Module partition

Source

Structs§

PartitionMatcher
Set of parameters to use for identifying the correct partition to open via [open_partition]

Functions§

find_partition
Waits for a partition to appear on BLOCK_DEV_PATH that matches the fields in the PartitionMatcher. Returns the path of the partition if found. Errors after timeout duration.
find_partition_in
Waits for a partition to appear in [dir] that matches the fields in [matcher]. Returns the topological path of the partition if found. Returns an error after the timeout duration expires.
fvm_allocate_partition
partition_matches_with_proxy
Checks if the partition associated with proxy matches the matcher. An error isn’t necessarily an issue - we might be using a matcher that wants a type guid, but the device we are currently checking doesn’t implement get_type_guid. The error message may help debugging why no partition was matched but should generally be considered recoverable.