1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

teardown aborts if it hits an error, so better teardown semaphores earlier

as we need them later in the teardown process
This commit is contained in:
Alasdair Kergon 2011-06-29 18:14:08 +00:00
parent 637245e9f5
commit 73c5f313e5

View File

@ -61,6 +61,9 @@ prepare_dmeventd() {
}
teardown_devs() {
# Delete any remaining dm/udev semaphores
dmsetup udevcomplete_all -y
test -n "$PREFIX" && {
rm -rf $TESTDIR/dev/$PREFIX*
@ -87,9 +90,6 @@ teardown_devs() {
rm -f DEVICES # devs is set in prepare_devs()
rm -f LOOP
# Delete any remaining dm/udev semaphores
dmsetup udevcomplete_all -y
# Display any loop devices that failed to get torn down
losetup -a
}