[ Version ( since = "2.1" ) ]
public Block get_block_for_mdraid (MDRaid raid)
Gets the RAID device (e.g. /dev/md0
) for raid
.
In the case of a split-brain syndrome, it is undefined
which RAID device is returned. For example this can happen if /dev/sda
and /dev/sdb
are components of a two-disk
RAID-1 and /dev/md0
and /dev/md1
are two degraded arrays, each one using exactly one of the two devices. Use
get_all_blocks_for_mdraid to get all RAID devices.
this |
A Client. |
raid |
A MDRaid. |
A Block or |