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

md: range check slot number when manually adding a spare.



When adding a spare to an active array, we should check the slot
number, but allow it to be larger than raid_disks if a reshape
is being prepared.

Apply the same test when adding a device to an
array-under-construction.  It already had most of the test in place,
but not quite all.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 1a940fce
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