]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid: handle failed devices during start up
authorJonathan E Brassow <jbrassow@redhat.com>
Wed, 28 Mar 2012 17:41:26 +0000 (18:41 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 28 Mar 2012 17:41:26 +0000 (18:41 +0100)
commit274c74900f015caa8f26ab43044c37168e6b6871
tree879a6e4ae0b156f05487ac2eb058920e83a0285e
parent8a875836f4f63343fb6d9761c6fdc9be29a54395
dm raid: handle failed devices during start up

The dm-raid code currently fails to create a RAID array if any of the
superblocks cannot be read.  This was an oversight as there is already
code to handle this case if the values ('- -') were provided for the
failed array position.

With this patch, if a superblock cannot be read, the array position's
fields are initialized as though '- -' was set in the 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>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid.c