'wait' is a shell builtin that isn't doing anything useful. It should be calling 'check wait' I think. Signed-off-by: NeilBrown <neilb@suse.de>
23 lines
640 B
Plaintext
23 lines
640 B
Plaintext
. tests/env-imsm-template
|
|
|
|
# Create RAID 0 from a single disk.
|
|
# POSITIVE test
|
|
|
|
vol0_num_comps=1
|
|
vol0_comp_size=$((10 * 1024))
|
|
|
|
# Create container
|
|
mdadm --create --run $container --auto=md --metadata=imsm --force --raid-disks=$vol0_num_comps $dev0
|
|
check wait
|
|
imsm_check container $vol0_num_comps
|
|
|
|
# Create RAID 0 volume
|
|
mdadm --create --run $member0 --auto=md --level=0 --size=$vol0_comp_size --chunk=64 --force --raid-disks=$vol0_num_comps $dev0
|
|
check wait
|
|
|
|
# Test the member
|
|
imsm_check member $member0 $vol0_num_comps 0 $vol0_comp_size $((vol0_num_comps * vol0_comp_size)) 0 64
|
|
testdev $member0 $vol0_num_comps $vol0_comp_size 64
|
|
|
|
exit 0
|