]> sourceware.org Git - lvm2.git/commitdiff
tests: fix mkdir pvs_online
authorDavid Teigland <teigland@redhat.com>
Tue, 10 Jul 2018 19:19:46 +0000 (14:19 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 10 Jul 2018 19:19:46 +0000 (14:19 -0500)
test/shell/pvscan-autoactivate.sh
test/shell/pvscan-nomda-bg.sh

index af6f2b2d4c15bbde1c2b01301bcdaa466f1be611..85a08cff7c7c372b5f6fd02c711524ef45b759cb 100644 (file)
@@ -19,6 +19,8 @@ aux prepare_pvs 2
 vgcreate $vg1 "$dev1" "$dev2"
 lvcreate -n $lv1 -l 4 -a n $vg1
 
+mkdir /run/lvm/pvs_online || true
+
 # the first pvscan scans all devs 
 
 rm /run/lvm/pvs_online/*
index f8ecc080a744c976f01575932f5522eacfab9a03..d73f3daa24f03cc9672e5bd1d4a862405e58b994 100644 (file)
@@ -26,7 +26,7 @@ check inactive $vg1 foo
 
 # create a file in pvs_online to disable the pvscan init
 # case which scans everything when the first dev appears.
-mkdir /run/lvm/pvs_online/
+mkdir /run/lvm/pvs_online || true
 touch /run/lvm/pvs_online/foo
 
 pvscan --cache --background "$dev2" -aay
This page took 0.043457 seconds and 5 git commands to generate.