]> git.ipfire.org Git - thirdparty/mdadm.git/commit
tests, imsm: Calculate expected array_size in proper way
authorMichal Zylowski <michal.zylowski@intel.com>
Fri, 22 Jun 2018 14:34:12 +0000 (16:34 +0200)
committerJes Sorensen <jsorensen@fb.com>
Wed, 11 Jul 2018 17:17:29 +0000 (13:17 -0400)
commitcf42a1c7074a4f6258e6f0e4c122a93fd9c89850
tree845f8e1d85ad3f7fe4bfe5286ef036447007c060
parentf49f083e2ccfe3d0c72819cf4aa615d3dce85cda
tests, imsm: Calculate expected array_size in proper way

Tests should calucalte expected array_size accordingly to raid level. Also
tests should take care about runding to neares MB introduced from b53bfba6
"imsm: use rounded size for metadata initialization".

Expect proper size in tests. Simplify 09imsm-overlap test by creating array
with size which has not been rounded. Main purpose of this test is checking
something else.

Signed-off-by: Michal Zylowski <michal.zylowski@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
tests/09imsm-create-fail-rebuild
tests/09imsm-overlap
tests/env-imsm-template