Expand description
Block-device, filesystem, and queue-discovery utilities.
The helpers inspect filesystem metadata and system block-device information. Discovery covers backing device names, software RAID, multi-queue properties, and the filesystem hosting a path.
Discovery reads sysfs under /sys/dev/block/, stats the device through
MetadataExt, and calls statfs(2), which not every target provides.
Where an interface is missing 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
Enumsยง
- Filesystem
- Filesystem hosting a path, among those needing special handling.
Functionsยง
- block_
path ๐ - dev_
from_ ๐path - Get the (major, minor) of the block device on which Path is mounted.
- filesystem_
from_ path - Get the filesystem on which Path is mounted, when it needs special handling.
- 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.