Structs§

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

Functions§

  • 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.
  • 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.
  • 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.