Date: Mon, 29 May 2017 08:54:21 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r319109 - user/pho/stress2/misc Message-ID: <201705290854.v4T8sLg9093114@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Mon May 29 08:54:21 2017 New Revision: 319109 URL: https://svnweb.freebsd.org/changeset/base/319109 Log: Only show dd output on failure. Sponsored by: Dell EMC Isilon Modified: user/pho/stress2/misc/md5.sh Modified: user/pho/stress2/misc/md5.sh ============================================================================== --- user/pho/stress2/misc/md5.sh Mon May 29 08:51:24 2017 (r319108) +++ user/pho/stress2/misc/md5.sh Mon May 29 08:54:21 2017 (r319109) @@ -39,12 +39,13 @@ . ../default.cfg +log=/tmp/md5.log dd if=/dev/zero of=$diskimage bs=1k count=5k 2>&1 | egrep -v "records|transferred" -mdconfig -f $diskimage -u md$mdstart +mdconfig -f $diskimage -u md$mdstart || exit 1 newfs $newfs_flags /dev/md$mdstart > /dev/null -( - dd if=/dev/md$mdstart of=/dev/null 2>&1 || echo FAIL -) | egrep -v "records|transferred" +dd if=/dev/md$mdstart of=/dev/null > $log 2>&1 && s=0 || s=1 +[ $s -eq 1 ] && cat $log mdconfig -d -u $mdstart -rm -f $diskimage +rm -f $diskimage $log +exit $s
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705290854.v4T8sLg9093114>