From owner-svn-src-user@freebsd.org Mon May 29 08:54:22 2017 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DE19CF4C85 for ; Mon, 29 May 2017 08:54:22 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D11B714AC; Mon, 29 May 2017 08:54:22 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4T8sLCT093115; Mon, 29 May 2017 08:54:21 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4T8sLg9093114; Mon, 29 May 2017 08:54:21 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201705290854.v4T8sLg9093114@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Mon, 29 May 2017 08:54:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r319109 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2017 08:54:22 -0000 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