"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/imsm-grow-template" between
mdadm-4.2-rc1.tar.xz and mdadm-4.2-rc2.tar.xz

About: mdadm is a tool for creating, managing and monitoring device arrays using the "md" driver in Linux, also known as Software RAID arrays.

imsm-grow-template  (mdadm-4.2-rc1.tar.xz):imsm-grow-template  (mdadm-4.2-rc2.tar.xz)
skipping to change at line 45 skipping to change at line 45
imsm_check member $member $disks $level $size $array_size $offset $chunk imsm_check member $member $disks $level $size $array_size $offset $chunk
testdev $member $comps $size $chunk testdev $member $comps $size $chunk
} }
# Create container # Create container
mdadm --create --run $container --auto=md --metadata=imsm --raid-disks=$num_disk s $device_list mdadm --create --run $container --auto=md --metadata=imsm --raid-disks=$num_disk s $device_list
check wait check wait
imsm_check container $num_disks imsm_check container $num_disks
# Create first volume inside the container # Create first volume inside the container
mdadm --create --run $member0 --auto=md --level=$vol0_level --size=$vol0_comp_si if [[ ! -z $vol0_chunk ]]; then
ze --chunk=$vol0_chunk --raid-disks=$num_disks $device_list mdadm --create --run $member0 --auto=md --level=$vol0_level --size=$vol0_
comp_size --chunk=$vol0_chunk --raid-disks=$num_disks $device_list
else
mdadm --create --run $member0 --auto=md --level=$vol0_level --size=$vol0_
comp_size --raid-disks=$num_disks $device_list
fi
check wait check wait
# Create second volume inside the container (if defined) # Create second volume inside the container (if defined)
if [ ! -z $vol1_chunk ]; then if [ ! -z $vol1_level ]; then
mdadm --create --run $member1 --auto=md --level=$vol1_level --size=$vol1_com if [ ! -z $vol1_chunk ]; then
p_size --chunk=$vol1_chunk --raid-disks=$num_disks $device_list mdadm --create --run $member1 --auto=md --level=$vol1_level --siz
check wait e=$vol1_comp_size --chunk=$vol1_chunk --raid-disks=$num_disks $device_list
else
mdadm --create --run $member1 --auto=md --level=$vol1_level --siz
e=$vol1_comp_size --raid-disks=$num_disks $device_list
fi
check wait
fi fi
# Wait for any RESYNC to complete # Wait for any RESYNC to complete
check wait check wait
# Test first volume # Test first volume
imsm_check member $member0 $num_disks $vol0_level $vol0_comp_size $((vol0_comp_s ize * vol0_num_comps)) $vol0_offset $vol0_chunk imsm_check member $member0 $num_disks $vol0_level $vol0_comp_size $((vol0_comp_s ize * vol0_num_comps)) $vol0_offset $vol0_chunk
testdev $member0 $vol0_num_comps $vol0_comp_size $vol0_chunk testdev $member0 $vol0_num_comps $vol0_comp_size $vol0_chunk
# Test second volume (if defined) # Test second volume (if defined)
if [ ! -z $vol1_chunk ]; then if [ ! -z $vol1_level ]; then
imsm_check member $member1 $num_disks $vol1_level $vol1_comp_size $((vol1_co mp_size * vol1_num_comps)) $vol1_offset $vol1_chunk imsm_check member $member1 $num_disks $vol1_level $vol1_comp_size $((vol1_co mp_size * vol1_num_comps)) $vol1_offset $vol1_chunk
testdev $member1 $vol1_num_comps $vol1_comp_size $vol1_chunk testdev $member1 $vol1_num_comps $vol1_comp_size $vol1_chunk
fi fi
# Add extra disks to container if operation requires spares in container. # Add extra disks to container if operation requires spares in container.
for i in $spare_list for i in $spare_list
do do
mdadm --add $container $i mdadm --add $container $i
check wait check wait
num_disks=$((num_disks + 1)) num_disks=$((num_disks + 1))
 End of changes. 3 change blocks. 
7 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)