Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 2015 09:40:37 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r278893 - user/pho/stress2/misc
Message-ID:  <201502170940.t1H9eboV005097@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Tue Feb 17 09:40:36 2015
New Revision: 278893
URL: https://svnweb.freebsd.org/changeset/base/278893

Log:
  Fix whitespace, limit runtime and user $testuser.
  
  Sponsored by:	 EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/quota1.sh
  user/pho/stress2/misc/quota10.sh
  user/pho/stress2/misc/quota5.sh

Modified: user/pho/stress2/misc/quota1.sh
==============================================================================
--- user/pho/stress2/misc/quota1.sh	Tue Feb 17 09:34:48 2015	(r278892)
+++ user/pho/stress2/misc/quota1.sh	Tue Feb 17 09:40:36 2015	(r278893)
@@ -48,7 +48,7 @@ newfs $newfs_flags  md${mdstart}$part > 
 mount /dev/md${mdstart}$part $mntpoint
 export RUNDIR=${mntpoint}/stressX
 export runRUNTIME=10m            # Run tests for 10 minutes
-(cd ..; ./run.sh disk.cfg) 
+(cd ..; ./run.sh disk.cfg)
 while mount | grep -q $mntpoint; do
 	umount $mntpoint > /dev/null 2>&1 || sleep 1
 done

Modified: user/pho/stress2/misc/quota10.sh
==============================================================================
--- user/pho/stress2/misc/quota10.sh	Tue Feb 17 09:34:48 2015	(r278892)
+++ user/pho/stress2/misc/quota10.sh	Tue Feb 17 09:40:36 2015	(r278893)
@@ -88,7 +88,7 @@ else
 	else
 
 		# The test: Parallel mount and unmounts
-		for i in `jot 1024`; do
+		for i in `jot 1000`; do
 			m=$1
 			opt=`[ $(( m % 2 )) -eq 0 ] && echo -f`
 			mount $opt /dev/md${m}${part} ${mntpoint}$m

Modified: user/pho/stress2/misc/quota5.sh
==============================================================================
--- user/pho/stress2/misc/quota5.sh	Tue Feb 17 09:34:48 2015	(r278892)
+++ user/pho/stress2/misc/quota5.sh	Tue Feb 17 09:40:36 2015	(r278893)
@@ -30,15 +30,16 @@
 
 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
 
+mount | grep -q "on /tmp (ufs," || exit 0
 if ! grep /tmp /etc/fstab | grep -q quota ; then
 	echo "/tmp must have quota enabled!"
 	exit 2
-fi	
-edquota -u -f /tmp -e /tmp:1500000:1400000:200000:180000 pho
-edquota -g -f /tmp -e /tmp:1500000:1400000:200000:180000 pho
+fi
+edquota -u -f /tmp -e /tmp:1500000:1400000:200000:180000 $testuser
+edquota -g -f /tmp -e /tmp:1500000:1400000:200000:180000 $testuser
 quotaon /tmp
 
-#su pho -c "export runRUNTIME=60m; cd /home/pho/stress2; ./run.sh disk.cfg"
-su pho -c "export runRUNTIME=60m; cd ..; ./mkdir -t 1h -i 200 -v -v"
+su $testuser -c "export runRUNTIME=60m; cd ../testcases/mkdir; \
+    ./mkdir -t 30m -i 200 -v -v"
 
 quotaoff /tmp



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