]> git.baikalelectronics.ru Git - kernel.git/commit
md: allow re-add to failed arrays.
authorNeilBrown <neilb@suse.de>
Mon, 19 Mar 2012 01:46:37 +0000 (12:46 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 19 Mar 2012 01:46:37 +0000 (12:46 +1100)
commit097e1ac253f46b714c2684ea2b333f78381e5911
tree6a0efe323cfaca9d180c0429c74697598c6d9a05
parent0d6a3f317299cf80e9a7b6adbc6fa1c1cf047b92
md: allow re-add to failed arrays.

When an array is failed (some data inaccessible) then there is no
point attempting to add a spare as it could not possibly be recovered.

However that may be value in re-adding a recently removed device.
e.g. if there is a write-intent-bitmap and it is clear, then access
to the data could be restored by this action.

So don't reject a re-add to a failed array for RAID10 and RAID5 (the
only arrays  types that check for a failed array).

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c
drivers/md/raid5.c