mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tests: create whole path with mkdir
Create also 'lvm' upper this if such one is missing in /run dir and use '-p' with mkdir.
This commit is contained in:
parent
f7adcb5f6d
commit
0747a6d0de
@ -32,7 +32,7 @@ vgcreate $vg1 "$dev1" "$dev2"
|
|||||||
lvcreate -n $lv1 -l 4 -a n $vg1
|
lvcreate -n $lv1 -l 4 -a n $vg1
|
||||||
|
|
||||||
# the first pvscan scans all devs
|
# the first pvscan scans all devs
|
||||||
test -d "$ONLINEDIR" || mkdir "$ONLINEDIR"
|
test -d "$ONLINEDIR" || mkdir -p "$ONLINEDIR"
|
||||||
_clear_online nofoo
|
_clear_online nofoo
|
||||||
|
|
||||||
pvscan --cache -aay
|
pvscan --cache -aay
|
||||||
|
@ -28,7 +28,7 @@ RUNDIR="/run"
|
|||||||
test -d "$RUNDIR" || RUNDIR="/var/run"
|
test -d "$RUNDIR" || RUNDIR="/var/run"
|
||||||
# create a file in pvs_online to disable the pvscan init
|
# create a file in pvs_online to disable the pvscan init
|
||||||
# case which scans everything when the first dev appears.
|
# case which scans everything when the first dev appears.
|
||||||
mkdir "$RUNDIR/lvm/pvs_online" || true
|
mkdir -p "$RUNDIR/lvm/pvs_online" || true
|
||||||
touch "$RUNDIR/lvm/pvs_online/foo"
|
touch "$RUNDIR/lvm/pvs_online/foo"
|
||||||
|
|
||||||
pvscan --cache --background "$dev2" -aay
|
pvscan --cache --background "$dev2" -aay
|
||||||
|
Loading…
Reference in New Issue
Block a user