get_block_for_mdraid
Description:
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.
Parameters:
this |
A Client. |
raid |
A MDRaid. |
Returns:
A Block or |