diff options
author | Neil Brown <neilb@notabene.brown> | 2008-06-28 08:31:29 +1000 |
---|---|---|
committer | Neil Brown <neilb@notabene.brown> | 2008-06-28 08:31:29 +1000 |
commit | 8ed0a5216a0238f53b482ec88ce4aeed4b9f0da1 (patch) | |
tree | 31383b73c6d471dc8620b0bda044d5d514fd1d8b /drivers/md/raid1.c | |
parent | 1a0fd497733bd029a7d5f2e5c69b1dff715b7792 (diff) | |
download | linux-8ed0a5216a0238f53b482ec88ce4aeed4b9f0da1.tar.bz2 |
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>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions