From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6093 invoked by alias); 24 May 2010 15:28:46 -0000 Received: (qmail 6078 invoked by uid 9699); 24 May 2010 15:28:46 -0000 Date: Mon, 24 May 2010 15:28:00 -0000 Message-ID: <20100524152846.6076.qmail@sourceware.org> From: mornfall@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/test t-pvcreate-operation-md.sh Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2010-05/txt/msg00096.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mornfall@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. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-operation-md.sh.diff?cvsroot=lvm2&r1=1.5&r2=1.6 --- LVM2/test/t-pvcreate-operation-md.sh 2010/04/13 21:42:44 1.5 +++ LVM2/test/t-pvcreate-operation-md.sh 2010/05/24 15:28:45 1.6 @@ -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