Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2013 08:20:39 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r254682 - user/pho/stress2/misc
Message-ID:  <201308230820.r7N8KdHO093466@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Fri Aug 23 08:20:39 2013
New Revision: 254682
URL: http://svnweb.freebsd.org/changeset/base/254682

Log:
  Delete unused lines from copy/paste.
  
  Sponsored by:	EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/tmpfs2.sh

Modified: user/pho/stress2/misc/tmpfs2.sh
==============================================================================
--- user/pho/stress2/misc/tmpfs2.sh	Fri Aug 23 07:39:32 2013	(r254681)
+++ user/pho/stress2/misc/tmpfs2.sh	Fri Aug 23 08:20:39 2013	(r254682)
@@ -25,7 +25,7 @@
 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 # SUCH DAMAGE.
 #
-# $Id: crossmp.sh,v 1.2 2008/02/25 16:31:43 pho Exp $
+# $FreeBSD$
 #
 
 # panic: vfs_mount_destroy: nonzero writeopcount, seen.
@@ -35,20 +35,11 @@
 . ../default.cfg
 
 mounts=15		# Number of parallel scripts
-mdstart=$MDSTART	# Use md unit numbers from this point
-D=$DISKIMAGE
 
 if [ $# -eq 0 ]; then
-	for i in `jot $mounts`; do
-		m=$(( i + mdstart - 1 ))
-		[ ! -d ${mntpoint}$m ] && mkdir ${mntpoint}$m
-		mount | grep "$mntpoint" | grep -q md$m && umount ${mntpoint}$m
-	done
-
 	# start the parallel tests
 	for i in `jot $mounts`; do
-		m=$(( i + mdstart - 1 ))
-		./$0 $m &
+		./$0 $i &
 		./$0 find &
 	done
 
@@ -70,7 +61,6 @@ else
 			mount -t tmpfs tmpfs ${mntpoint}$m
 			cp -r /usr/include/machine/a* ${mntpoint}$m
 			while mount | grep -qw $mntpoint$m; do
-				opt=$([ $((`date '+%s'` % 2)) -eq 0 ] && echo "-f")
 				umount $opt ${mntpoint}$m > /dev/null 2>&1
 			done
 		done



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