Date: Tue, 26 Sep 2017 12:46:18 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r324015 - user/pho/stress2/misc Message-ID: <201709261246.v8QCkIrA043094@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Tue Sep 26 12:46:17 2017 New Revision: 324015 URL: https://svnweb.freebsd.org/changeset/base/324015 Log: Limit runtime. Return fsck(8) status. Sponsored by: Dell EMC Isilon Modified: user/pho/stress2/misc/newfs3.sh Modified: user/pho/stress2/misc/newfs3.sh ============================================================================== --- user/pho/stress2/misc/newfs3.sh Tue Sep 26 12:15:13 2017 (r324014) +++ user/pho/stress2/misc/newfs3.sh Tue Sep 26 12:46:17 2017 (r324015) @@ -46,6 +46,7 @@ opt="-O2" # newfs option. Eg. -U mount | grep "$mntpoint" | grep -q md${mdstart}$part && umount $mntpoint [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart +s=0 while [ $size -le $((128 * 1024 * 1024)) ]; do mb=$((size / 1024 / 1024)) rm -f $diskimage @@ -65,11 +66,15 @@ while [ $size -le $((128 * 1024 * 1024)) ]; do export runRUNTIME=15s export RUNTIME=$runRUNTIME export CTRLDIR=$mntpoint/stressX.control - (cd ..; ./run.sh disk.cfg) > /dev/null + (cd ..; ./run.sh disk.cfg) > /dev/null 2>&1 & + sleep 15 + ../tools/killall.sh + wait while mount | grep "$mntpoint" | \ grep -q md${mdstart}$part; do umount $mntpoint > /dev/null 2>&1 done + checkfs /dev/md${mdstart}$part || s=1 done blocksize=$((blocksize * 2)) done @@ -77,3 +82,4 @@ while [ $size -le $((128 * 1024 * 1024)) ]; do size=$((size + 32 * 1024 * 1024)) done rm -f $diskimage +return $s
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709261246.v8QCkIrA043094>