MCPcopy Create free account
hub / github.com/prometheus/procfs / DMMultipathDevice

Struct DMMultipathDevice

blockdevice/dm_multipath.go:28–41  ·  view source on GitHub ↗

DMMultipathDevice contains information about a single DM-multipath device discovered by scanning /sys/block/dm-* entries whose dm/uuid starts with "mpath-".

Source from the content-addressed store, hash-verified

26// discovered by scanning /sys/block/dm-* entries whose dm/uuid starts with
27// "mpath-".
28type DMMultipathDevice struct {
29 // Name is the device-mapper name (from dm/name), e.g. "mpathA".
30 Name string
31 // SysfsName is the kernel block device name, e.g. "dm-5".
32 SysfsName string
33 // UUID is the full DM UUID string, e.g. "mpath-360000000000001".
34 UUID string
35 // Suspended is true when dm/suspended reads "1".
36 Suspended bool
37 // SizeBytes is the device size in bytes (sectors × 512).
38 SizeBytes uint64
39 // Paths lists the underlying block devices from the slaves/ directory.
40 Paths []DMMultipathPath
41}
42
43// DMMultipathPath represents one underlying path device for a DM-multipath map.
44type DMMultipathPath struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected