]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Grow: allow for different sized devices when updating data_offset.
authorNeilBrown <neilb@suse.de>
Mon, 27 May 2013 05:09:38 +0000 (15:09 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 28 May 2013 06:58:18 +0000 (16:58 +1000)
commitf9b08fecd8fc05fb05471925bbec89fbd1a56e01
tree92fa56717ed06c001ec7e0452c2f28d66628eb64
parent199f1a1fadcd0fb5efba656ad92a44c51f8cc8ea
Grow: allow for different sized devices when updating data_offset.

It is possible that the devices in an array have different sizes, and
different data_offsets.  So the 'before_space' and 'after_space' may
be different from drive to drive.
Any decisions about how much to change the data_offset must work on
all devices, so must be based on the minimum available space on
any devices.

So find this minimum first, then do the calculation.

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