Neil Brown 8ed0a5216a Enable setting of 'offset' and 'size' of a hot-added spare.
offset_store and rdev_size_store allow control of the region of a
device which is to be using in an md/raid array.
They only allow these values to be set when an array is being assembled,
as changing them on an active array could be dangerous.
However when adding a spare device to an array, we might need to
set the offset and size before starting recovery.  So allow
these values to be set also if "->raid_disk < 0" which indicates that
the device is still a spare.

Signed-off-by: Neil Brown <neilb@suse.de>
2008-06-28 08:31:29 +10:00
..
2008-06-11 16:50:40 -07:00
2008-06-12 18:05:40 -07:00
2008-06-19 00:12:35 +02:00
2008-05-24 09:56:11 -07:00
2008-05-20 16:44:43 +02:00
2008-06-19 06:50:32 -04:00
2008-06-20 20:53:35 +02:00
2008-06-19 00:12:36 +02:00
2008-05-20 13:31:55 -07:00
2008-04-29 08:06:18 -07:00
2008-05-21 16:56:00 -07:00
2008-06-20 21:58:02 -07:00
2008-06-12 18:05:42 -07:00
2008-06-15 11:12:20 -05:00
2008-05-20 13:31:55 -07:00
2008-04-30 08:29:52 -07:00
2008-04-30 08:29:52 -07:00