DM RAID: Fix inability to handle failed devices during start-up
DM RAID: Fix inability to handle failed devices during start-up
The code fails to create a RAID array if any of the superblocks cannot be read.
However, if the userspace program passing in the device-mapper table spots the
failure and passes in the sentinel values ('- -') for the failed array position,
then everything is handled properly. This functional gap should not exist.
This patch makes it so that if a superblock cannot be read, the array position's
fields are initialized as though '- -' were passed in via the CTR table. That
is, the device is failed and the position should not be used; but if there is
sufficient redundancy, the array should still be activated.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>