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
..
2007-10-20 02:01:11 +01:00
2008-03-28 14:45:22 -07:00
2007-10-20 02:01:11 +01:00
2008-04-25 13:26:55 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:18 +01:00
2008-04-25 13:26:57 +01:00
2008-02-08 02:10:16 +00:00
2008-04-25 13:26:57 +01:00
2008-04-25 13:26:55 +01:00
2008-02-08 02:10:35 +00:00
2007-10-20 02:01:07 +01:00
2008-04-25 13:26:57 +01:00
2008-04-25 13:26:55 +01:00
2008-04-25 13:26:44 +01:00
2008-02-08 02:11:24 +00:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:26 +01:00
2008-04-25 13:26:53 +01:00
2008-02-08 02:10:32 +00:00
2008-04-25 13:26:55 +01:00
2008-02-06 10:41:18 -08:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00