Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 2014 14:14:31 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r263634 - user/pho/stress2/misc
Message-ID:  <201403221414.s2MEEVdO040900@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Sat Mar 22 14:14:31 2014
New Revision: 263634
URL: http://svnweb.freebsd.org/changeset/base/263634

Log:
  Added -x option to find. Submitted by casey peel isilon com.
  Cleaned up the script and silenced the output from fsx while here.
  
  Sponsored by:	EMC / Isilon storage division

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

Modified: user/pho/stress2/misc/umountf2.sh
==============================================================================
--- user/pho/stress2/misc/umountf2.sh	Sat Mar 22 13:58:06 2014	(r263633)
+++ user/pho/stress2/misc/umountf2.sh	Sat Mar 22 14:14:31 2014	(r263634)
@@ -34,8 +34,8 @@
 
 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
 
-fsxc=`find / -name fsx.c | tail -1`
-[ -z "fsxc" ] && exit
+fsxc=`find -x / /usr/src -name fsx.c | tail -1`
+[ -z "$fsxc" ] && exit
 
 cc -o /tmp/fsx $fsxc
 
@@ -44,24 +44,21 @@ cc -o /tmp/fsx $fsxc
 D=$diskimage
 dede $D 1m 1k || exit 1
 
-mount | grep "$mntpoint" | grep md${mdstart}${part} > /dev/null && umount $mntpoint
-mdconfig -l | grep md${mdstart} > /dev/null &&  mdconfig -d -u ${mdstart}
+mount | grep "$mntpoint" | grep md${mdstart}$part > /dev/null && umount $mntpoint
+mdconfig -l | grep md${mdstart} > /dev/null &&  mdconfig -d -u $mdstart
 
-mdconfig -a -t vnode -f $D -u ${mdstart}
-bsdlabel -w md${mdstart} auto
-newfs md${mdstart}${part} > /dev/null 2>&1
-mount /dev/md${mdstart}${part} $mntpoint
-df -ih $mntpoint
+mdconfig -a -t vnode -f $D -u $mdstart
+bsdlabel -w md$mdstart auto
+newfs md${mdstart}$part > /dev/null 2>&1
+mount /dev/md${mdstart}$part $mntpoint
 sleep 5
 for i in `jot 100`; do
-	/tmp/fsx -S $i -q ${mntpoint}/xxx$i &
+	/tmp/fsx -S $i -q ${mntpoint}/xxx$i > /dev/null &
 done
 sleep 30 
-umount -f $mntpoint&
+umount -f $mntpoint &
 sleep 300
 killall fsx
 sleep 5
-ls -l ${mntpoint}
 mdconfig -d -u $mdstart
 rm -f $D
-ls -l $mntpoint



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