LVM2/test t-pvcreate-operation-md.sh
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2010-05-24 15:28:45
Modified files:
test : t-pvcreate-operation-md.sh
Log message:
Skip t-pvcreate-operation-md if mdadm fails to create the required device.
test/t-pvcreate-operation-md.sh +2 -1
@@ -45,9 +45,10 @@ } # create 2 disk MD raid0 array (stripe_width=128K) -[ -b "$mddev" ] && exit 200 +test -b "$mddev" && exit 200 mdadm --create $mddev --auto=md --level 0 --raid-devices=2 --chunk 64 $dev1 $dev2 trap 'aux cleanup_md' EXIT # cleanup this MD device at the end of the test +test -b "$mddev" || exit 200 # Test alignment of PV on MD without any MD-aware or topology-aware detection # - should treat $mddev just like any other block device