- 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
This commit is contained in:
parent
80cc8ef4d7
commit
e50b18a333
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293048
@ -23,7 +23,7 @@ devwait()
|
|||||||
# a large number of md(4) devices lingering around
|
# a large number of md(4) devices lingering around
|
||||||
: ${TMPDIR=/tmp}
|
: ${TMPDIR=/tmp}
|
||||||
export TMPDIR
|
export TMPDIR
|
||||||
TEST_MDS_FILE=${TMPDIR}/test_mds
|
TEST_MDS_FILE=$(mktemp ${TMPDIR}/test_mds.XXXXXX) || exit 1
|
||||||
|
|
||||||
attach_md()
|
attach_md()
|
||||||
{
|
{
|
||||||
@ -45,4 +45,5 @@ geom_test_cleanup()
|
|||||||
mdconfig -d -u $test_md
|
mdconfig -d -u $test_md
|
||||||
done < $TEST_MDS_FILE
|
done < $TEST_MDS_FILE
|
||||||
fi
|
fi
|
||||||
|
rm -f $TEST_MDS_FILE
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user