mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
test attempt to remove stray loop devs
This commit is contained in:
parent
14e012871f
commit
1a3d96757e
@ -90,7 +90,9 @@ teardown_devs() {
|
|||||||
rm -f DEVICES # devs is set in prepare_devs()
|
rm -f DEVICES # devs is set in prepare_devs()
|
||||||
rm -f LOOP
|
rm -f LOOP
|
||||||
|
|
||||||
# Display any loop devices that failed to get torn down
|
# Remove any loop devices that failed to get torn down
|
||||||
|
losetup -a
|
||||||
|
echo losetup -d `losetup -a | grep $COMMON_PREFIX | cut -d: -f1` 2>/dev/null || true
|
||||||
losetup -a
|
losetup -a
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,11 +19,13 @@ unset CDPATH
|
|||||||
. lib/utils
|
. lib/utils
|
||||||
|
|
||||||
OLDPWD="`pwd`"
|
OLDPWD="`pwd`"
|
||||||
PREFIX="LVMTEST$$"
|
COMMON_PREFIX="LVMTEST"
|
||||||
|
PREFIX="${COMMON_PREFIX}$$"
|
||||||
|
|
||||||
TESTDIR=$(mkdtemp ${LVM_TEST_DIR-$(pwd)} $PREFIX.XXXXXXXXXX) \
|
TESTDIR=$(mkdtemp ${LVM_TEST_DIR-$(pwd)} $PREFIX.XXXXXXXXXX) \
|
||||||
|| { echo "failed to create temporary directory in ${LVM_TEST_DIR-$(pwd)}"; exit 1; }
|
|| { echo "failed to create temporary directory in ${LVM_TEST_DIR-$(pwd)}"; exit 1; }
|
||||||
|
|
||||||
|
export COMMON_PREFIX
|
||||||
export PREFIX
|
export PREFIX
|
||||||
export TESTDIR
|
export TESTDIR
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user