DMMultipathDevice contains information about a single DM-multipath device discovered by scanning /sys/block/dm-* entries whose dm/uuid starts with "mpath-".
| 26 | // discovered by scanning /sys/block/dm-* entries whose dm/uuid starts with |
| 27 | // "mpath-". |
| 28 | type 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. |
| 44 | type DMMultipathPath struct { |
nothing calls this directly
no outgoing calls
no test coverage detected