diff options
author | Peter Holm <pho@FreeBSD.org> | 2021-09-13 08:55:19 +0000 |
---|---|---|
committer | Peter Holm <pho@FreeBSD.org> | 2021-09-13 08:55:19 +0000 |
commit | ddd74e40e27db29494e9591b837c2a01b543ef80 (patch) | |
tree | 9f668b0324912aaf5de94d7835aa00b0a932729d | |
parent | d00c1f7f2f4a811d5c756cbb0d585c56661839f7 (diff) | |
download | src-ddd74e40e27db29494e9591b837c2a01b543ef80.tar.gz src-ddd74e40e27db29494e9591b837c2a01b543ef80.zip |
stress2: Added missing unmount
-rwxr-xr-x | tools/test/stress2/misc/unionfs.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/test/stress2/misc/unionfs.sh b/tools/test/stress2/misc/unionfs.sh index dbf3ba0fbc2e..6e04e809b501 100755 --- a/tools/test/stress2/misc/unionfs.sh +++ b/tools/test/stress2/misc/unionfs.sh @@ -45,8 +45,10 @@ mount -t unionfs -o noatime $mntpoint /tmp export RUNDIR=/tmp/stressX export runRUNTIME=10m # Run tests for 10 minutes (cd ..; ./run.sh disk.cfg) +umount /tmp while mount | grep $mntpoint | grep -q /dev/md; do umount $mntpoint || sleep 1 done mdconfig -d -u $mdstart rm -f $diskimage +exit 0 |