md/raid10 - support resizing some RAID10 arrays.
authorNeilBrown <neilb@suse.de>
Mon, 19 Mar 2012 01:46:40 +0000 (12:46 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 19 Mar 2012 01:46:40 +0000 (12:46 +1100)
commit006a09a0ae0a494473a8cd82c8d1d653e37e6663
tree169c59f77ef89e1c7cfb727249d60de88370fe79
parent6b740b8d79252f13bcb7e5d3c1d43157e78a81e7
md/raid10 - support resizing some RAID10 arrays.

'resizing' an array in this context means making use of extra
space that has become available in component devices, not adding new
devices.
It also includes shrinking the array to take up less space of
component devices.

This is not supported for array with a 'far' layout.  However
for 'near' and 'offset' layout arrays, adding and removing space at
the end of the devices is easy to support, and this patch provides
that support.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c