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:
parent
637245e9f5
commit
73c5f313e5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user