Skip to content
Commit 8ed0a521 authored by Neil Brown's avatar Neil Brown
Browse files

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: default avatarNeil Brown <neilb@suse.de>
parent 1a0fd497
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