1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: fix mkdir pvs_online

This commit is contained in:
David Teigland 2018-07-10 14:19:46 -05:00
parent 06439a2562
commit edf3f86184
2 changed files with 3 additions and 1 deletions

View 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/*

View 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