Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: NeilBrown <[email protected]>
- Loading branch information