svn commit: r319103 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Mon May 29 08:37:28 UTC 2017
Author: pho
Date: Mon May 29 08:37:27 2017
New Revision: 319103
URL: https://svnweb.freebsd.org/changeset/base/319103
Log:
Cleanup after test.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/misc/maxvnodes.sh
Modified: user/pho/stress2/misc/maxvnodes.sh
==============================================================================
--- user/pho/stress2/misc/maxvnodes.sh Mon May 29 07:57:01 2017 (r319102)
+++ user/pho/stress2/misc/maxvnodes.sh Mon May 29 08:37:27 2017 (r319103)
@@ -34,6 +34,7 @@
. ../default.cfg
+kldstat | grep -q tmpfs.ko || notloaded=1
mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
mount -o size=2g -t tmpfs tmpfs $mntpoint || exit 1
chmod 777 $mntpoint
@@ -64,3 +65,5 @@ wait
while mount | grep $mntpoint | grep -q tmpfs; do
umount $mntpoint || sleep 1
done
+[ $notloaded ] && kldunload tmpfs.ko
+exit 0
More information about the svn-src-user
mailing list