summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-01-02 10:07:31 +0000
committerngie <ngie@FreeBSD.org>2016-01-02 10:07:31 +0000
commit16a4e7fbfb63fb58e63ca52bcd720e1e415c13d8 (patch)
treeff2efefd907e28c176d7919101067a349a8c413f /tools/regression
parent34dcad2f1935a5b377fd348e986feee99f0c178a (diff)
downloadFreeBSD-src-16a4e7fbfb63fb58e63ca52bcd720e1e415c13d8.zip
FreeBSD-src-16a4e7fbfb63fb58e63ca52bcd720e1e415c13d8.tar.gz
- Use a temporary file for the temporary md(4) devices instead of
hardcoding it - Remove the temporary file in the cleanup routine MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/geom_subr.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/regression/geom_subr.sh b/tools/regression/geom_subr.sh
index 0ffb8c8..58dc31d 100644
--- a/tools/regression/geom_subr.sh
+++ b/tools/regression/geom_subr.sh
@@ -23,7 +23,7 @@ devwait()
# a large number of md(4) devices lingering around
: ${TMPDIR=/tmp}
export TMPDIR
-TEST_MDS_FILE=${TMPDIR}/test_mds
+TEST_MDS_FILE=$(mktemp ${TMPDIR}/test_mds.XXXXXX) || exit 1
attach_md()
{
@@ -45,4 +45,5 @@ geom_test_cleanup()
mdconfig -d -u $test_md
done < $TEST_MDS_FILE
fi
+ rm -f $TEST_MDS_FILE
}
OpenPOWER on IntegriCloud