diff options
Diffstat (limited to 'tests/00raid0')
-rw-r--r-- | tests/00raid0 | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/tests/00raid0 b/tests/00raid0 index c5ea9d35..07437c08 100644 --- a/tests/00raid0 +++ b/tests/00raid0 @@ -1,44 +1,43 @@ # create a simple raid0 -set -e -$mdadm -CR $md0 -l raid0 -n3 $dev0 $dev1 $dev2 -$check raid0 -sh tests/testdev $md0 3 $mdsize0 64 -$mdadm -S $md0 +mdadm -CR $md0 -l raid0 -n3 $dev0 $dev1 $dev2 +check raid0 +testdev $md0 3 $mdsize0 64 +mdadm -S $md0 # now with verion-1 superblock -$mdadm -CR $md0 -e1 -l0 -n4 $dev0 $dev1 $dev2 $dev3 -$check raid0 -sh tests/testdev $md0 4 $mdsize1 64 -$mdadm -S $md0 +mdadm -CR $md0 -e1 -l0 -n4 $dev0 $dev1 $dev2 $dev3 +check raid0 +testdev $md0 4 $mdsize1 64 +mdadm -S $md0 # now with no superblock -$mdadm -B $md0 -l0 -n5 $dev0 $dev1 $dev2 $dev3 $dev4 -$check raid0 -sh tests/testdev $md0 5 $size 64 -$mdadm -S $md0 +mdadm -B $md0 -l0 -n5 $dev0 $dev1 $dev2 $dev3 $dev4 +check raid0 +testdev $md0 5 $size 64 +mdadm -S $md0 # now same again with different chunk size for chunk in 4 32 256 do - $mdadm -CR $md0 -l raid0 --chunk $chunk -n3 $dev0 $dev1 $dev2 - $check raid0 - sh tests/testdev $md0 3 $mdsize0 $chunk - $mdadm -S $md0 + mdadm -CR $md0 -l raid0 --chunk $chunk -n3 $dev0 $dev1 $dev2 + check raid0 + testdev $md0 3 $mdsize0 $chunk + mdadm -S $md0 # now with verion-1 superblock - $mdadm -CR $md0 -e1 -l0 -c $chunk -n4 $dev0 $dev1 $dev2 $dev3 - $check raid0 - sh tests/testdev $md0 4 $mdsize1 $chunk - $mdadm -S $md0 + mdadm -CR $md0 -e1 -l0 -c $chunk -n4 $dev0 $dev1 $dev2 $dev3 + check raid0 + testdev $md0 4 $mdsize1 $chunk + mdadm -S $md0 # now with no superblock - $mdadm -B $md0 -l0 -n5 --chun=$chunk $dev0 $dev1 $dev2 $dev3 $dev4 - $check raid0 - sh tests/testdev $md0 5 $size $chunk - $mdadm -S $md0 + mdadm -B $md0 -l0 -n5 --chun=$chunk $dev0 $dev1 $dev2 $dev3 $dev4 + check raid0 + testdev $md0 5 $size $chunk + mdadm -S $md0 done exit 0 |