Skip to main content

Module storage

Module storage 

Source
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ยง

MultiDevice
Multi-Device (md) i.e. software raid properties.
MultiQueue
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.