]> git.ipfire.org Git - thirdparty/mdadm.git/blob - tests/12imsm-r0_2d-grow-r0_4d
Fix RAID metadata check
[thirdparty/mdadm.git] / tests / 12imsm-r0_2d-grow-r0_4d
1 . tests/env-imsm-template
2
3 # RAID 0 volume, 2 disks grow to RAID 0 volume, 4 disks
4 # POSITIVE test
5
6 num_disks=2
7 device_list="$dev0 $dev1"
8 spare_list="$dev2 $dev3"
9
10 # Before: RAID 0 volume, 2 disks, 64k chunk size
11 vol0_level=0
12 vol0_comp_size=$((5 * 1024))
13 vol0_chunk=64
14 vol0_num_comps=$num_disks
15 vol0_offset=0
16
17 # After: RAID 0 volume, 4 disks, 64k chunk size
18 vol0_new_num_comps=$((num_disks + 2))
19
20 . tests/imsm-grow-template 0 0