diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2022-06-20 18:10:43 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2022-06-24 19:56:27 +0200 |
commit | 9a7df595bbe360132cb37c8b39aa1fd9ac24b43f (patch) | |
tree | 2d904190610307e381e2b243e91afe2c5556e43d /Assemble.c | |
parent | imsm: use same slot across container (diff) | |
download | mdadm-9a7df595bbe360132cb37c8b39aa1fd9ac24b43f.tar.xz mdadm-9a7df595bbe360132cb37c8b39aa1fd9ac24b43f.zip |
imsm: block changing slots during creation
If user specifies drives for array creation, then slot order across
volumes is not preserved.
Ideally, it should be checked in validate_geometry() but it is not
possible in current implementation (order is determined later).
Add verification in add_to_super_imsm_volume() and throw error if
mismatch is detected.
IMSM allows to use only same members within container.
This is not hardware dependency but metadata limitation.
Therefore, 09-imsm-overlap test is removed. Testing it is pointless.
After this patch, creation in this scenario is blocked. Offset
verification is covered in other tests.
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Acked-by: Coly Li <colyli@suse.de>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'Assemble.c')
0 files changed, 0 insertions, 0 deletions