diff options
author | NeilBrown <neilb@suse.de> | 2013-07-30 16:51:38 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-07-30 17:05:47 +1000 |
commit | 23bf42cc79d46de019d4b27c16354a191a98ed41 (patch) | |
tree | 0a43e981d30d69879929f780824eabd648e0c6f9 /mdadm.h | |
parent | 641da74591920d4cfd4f92e7eefbf317d6ec348c (diff) |
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 'mdadm.h')
-rw-r--r-- | mdadm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -997,6 +997,7 @@ struct supertype { void *info; void *other; /* Hack used to convert v0.90 to v1.0 */ unsigned long long devsize; + unsigned long long data_offset; /* used by v1.x only */ int ignore_hw_compat; /* used to inform metadata handlers that it should ignore HW/firmware related incompatability to load metadata. Used when examining metadata to display content of disk |