]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow/raid10: support reducing the devices in a RAID10.
authorNeilBrown <neilb@suse.de>
Sun, 20 May 2012 23:42:27 +0000 (09:42 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 20 May 2012 23:42:27 +0000 (09:42 +1000)
commit872ddb0608700a338c25a84a0e23c744714c8f0d
tree0565765c9c72c8703796bc5a31ab16c0c6550c10
parent5ef6ef98e9c4f0b6227a55ea3c909c7c61244b0a
Grow/raid10: support reducing the devices in a RAID10.

When reducing the number of devices in a RAID10, we increase the
data offset to avoid the need for backup area.

If there is no room at the end of the device to allow this, we need
to first reduce the component size of each device.  However if there
is room, we don't want to insist on that, otherwise growing then
shrinking the array would not be idempotent.

So find the min before/after space before analysing a RAID10 for
reshape, is if the after space is insufficient, reduce the total size
of the array and the component size accordingly.

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c