diff options
author | NeilBrown <neilb@suse.de> | 2013-07-30 08:51:38 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-07-30 09:05:47 +0200 |
commit | 23bf42cc79d46de019d4b27c16354a191a98ed41 (patch) | |
tree | 0a43e981d30d69879929f780824eabd648e0c6f9 /mdmon.h | |
parent | super1: separate to version of _avail_space1(). (diff) | |
download | mdadm-23bf42cc79d46de019d4b27c16354a191a98ed41.tar.xz mdadm-23bf42cc79d46de019d4b27c16354a191a98ed41.zip |
super1: simplify setting of array size.
Currently the extra space to leave before the data in the array
is calculated in two separate places, and they can be inconsistent.
Instead, do it all in validate_geometry. This records the
'data_offset' chosen which all other devices then use.
'write_init_super' now just uses the value rather than doing all the
calculations again.
This results in more consistent numbers.
Also, load_super sets st->data_offset so that it is used by "--add",
so the new device has a data offset matching a pre-existing device.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.h')
0 files changed, 0 insertions, 0 deletions