diff options
author | Michal Zylowski <michal.zylowski@intel.com> | 2018-06-22 16:34:11 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2018-07-11 19:17:12 +0200 |
commit | f49f083e2ccfe3d0c72819cf4aa615d3dce85cda (patch) | |
tree | e7d1e0ec73f711ef9b5541e301e9fbe6940871d4 | |
parent | tests, imsm: Test shouldn't call grow with chunk and level in one command (diff) | |
download | mdadm-f49f083e2ccfe3d0c72819cf4aa615d3dce85cda.tar.xz mdadm-f49f083e2ccfe3d0c72819cf4aa615d3dce85cda.zip |
tests, imsm: Migration from RAID5 to RAID0 is not supported for IMSM metadata
When test tries to change RAID level from RAID5 to RAID0 mdadm respond with
error about unsporrted operation.
Make 16imsm-r5_3d-migrate-r0_3d and 16imsm-r5_5d-migrate-r0_5d test
negative.
Signed-off-by: Michal Zylowski <michal.zylowski@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r-- | tests/16imsm-r5_3d-migrate-r0_3d | 4 | ||||
-rw-r--r-- | tests/16imsm-r5_5d-migrate-r0_5d | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/16imsm-r5_3d-migrate-r0_3d b/tests/16imsm-r5_3d-migrate-r0_3d index b1459cc1..bcb57090 100644 --- a/tests/16imsm-r5_3d-migrate-r0_3d +++ b/tests/16imsm-r5_3d-migrate-r0_3d @@ -1,7 +1,7 @@ . tests/env-imsm-template # RAID 5 volume (3 disks) migrate to RAID 0 volume (2 disks) -# POSITIVE test +# NEGATIVE test num_disks=3 device_list="$dev0 $dev1 $dev2" @@ -18,4 +18,4 @@ vol0_new_level=0 vol0_new_num_comps=$((num_disks-1)) vol0_new_chunk=64 -. tests/imsm-grow-template 0 1 +. tests/imsm-grow-template 1 1 diff --git a/tests/16imsm-r5_5d-migrate-r0_5d b/tests/16imsm-r5_5d-migrate-r0_5d index 323ca52e..ca77435f 100644 --- a/tests/16imsm-r5_5d-migrate-r0_5d +++ b/tests/16imsm-r5_5d-migrate-r0_5d @@ -1,7 +1,7 @@ . tests/env-imsm-template # RAID 5 volume (5 disks) migration to RAID 0 volume (4 disks) -# POSITIVE test +# NEGATIVE test num_disks=5 device_list="$dev0 $dev1 $dev2 $dev3 $dev4" @@ -18,4 +18,4 @@ vol0_new_level=0 vol0_new_num_comps=$((num_disks - 1)) vol0_new_chunk=64 -. tests/imsm-grow-template 0 1 +. tests/imsm-grow-template 1 1 |