NeilBrown ba1b41b6b4 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 <neilb@suse.de>
2011-01-14 09:14:34 +11:00
..
2010-08-12 04:14:13 +01:00
2010-08-12 04:14:11 +01:00
2010-08-12 04:14:32 +01:00
2010-08-12 04:14:12 +01:00
2010-08-12 04:14:08 +01:00
2010-09-10 12:35:38 +02:00
2011-01-14 09:14:34 +11:00
2010-09-10 12:35:38 +02:00
2010-09-10 12:35:38 +02:00
2011-01-14 09:14:33 +11:00
2010-10-29 16:40:33 +11:00
2010-09-10 12:35:38 +02:00
2011-01-14 09:14:33 +11:00