diff options
author | NeilBrown <neilb@suse.de> | 2011-01-31 13:47:13 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-01-31 13:47:13 +1100 |
commit | a8c42c7f476b5bb39bb3a5b32d5473b9a46cadb9 (patch) | |
tree | 59b82042476e6b92ee293570d30a2580dba56d09 /init | |
parent | fc3a08b85b7a4f6c1069e5f71f6ad40d925ff55b (diff) | |
download | linux-a8c42c7f476b5bb39bb3a5b32d5473b9a46cadb9.tar.bz2 |
md: Don't use remove_and_add_spares to remove failed devices from a read-only array
remove_and_add_spares is called in two places where the needs really
are very different.
remove_and_add_spares should not be called on an array which is about
to be reshaped as some extra devices might have been manually added
and that would remove them. However if the array is 'read-auto',
that will currently happen, which is bad.
So in the 'ro != 0' case don't call remove_and_add_spares but simply
remove the failed devices as the comment suggests is needed.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions