Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2017 08:37:27 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r319103 - user/pho/stress2/misc
Message-ID:  <201705290837.v4T8bRYF083093@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705290837.v4T8bRYF083093>