Skip to content
Commit 4ca40c2c authored by NeilBrown's avatar NeilBrown
Browse files

md/raid10: Allow replacement device to be replace old drive.



When recovery finish and spare_active is called, check for a
replace that might have just become fully synced and mark it
as such, marking the original as failed.

Then when the original is removed, move the replacement into
its position.

This means that 'replacement' and spontaneously become NULL in some
situations.  Make sure we check for those.
It also means that 'rdev' and 'replacement' could appear to be
identical - check for that too.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 24afd80d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment