Expand description
Block-device and queue-discovery utilities.
The helpers inspect filesystem metadata and system block-device information. Discovery covers backing device names, software RAID, and multi-queue properties.
Discovery reads sysfs under /sys/dev/block/ and stats the device through
MetadataExt, neither of which exists outside the unix family. On
non-unix targets these functions report no raid or return an unsupported
error, so callers need no condition of their own.
Structsยง
- Multi
Device - Multi-Device (md) i.e. software raid properties.
- Multi
Queue - Multi-Queue (mq) characteristics.
- Queue
- Single-queue characteristics
Functionsยง
- block_
path ๐ - dev_
from_ ๐path - Get the (major, minor) of the block device on which Path is mounted.
- md_
discover - Get properties of a MultiDevice (md) storage system
- mq_
discover ๐ - Get properties of a MultiQueue within a MultiDevice.
- name_
from_ path - Get the name of the block device on which Path is mounted.
- queue_
discover ๐ - Get properties of a Queue within a MultiQueue.