From owner-svn-src-user@freebsd.org Wed Apr 18 11:31:17 2018 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0E676F81A3F for ; Wed, 18 Apr 2018 11:31:17 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B13B6753F5; Wed, 18 Apr 2018 11:31:16 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AC5121A5B4; Wed, 18 Apr 2018 11:31:16 +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 w3IBVGbE008092; Wed, 18 Apr 2018 11:31:16 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3IBVGCl008091; Wed, 18 Apr 2018 11:31:16 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201804181131.w3IBVGCl008091@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Wed, 18 Apr 2018 11:31:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r332668 - user/pho/stress2/misc X-SVN-Group: user X-SVN-Commit-Author: pho X-SVN-Commit-Paths: user/pho/stress2/misc X-SVN-Commit-Revision: 332668 X-SVN-Commit-Repository: base 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.25 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: Wed, 18 Apr 2018 11:31:17 -0000 Author: pho Date: Wed Apr 18 11:31:16 2018 New Revision: 332668 URL: https://svnweb.freebsd.org/changeset/base/332668 Log: Added missing umount(8) and style fixes. Modified: user/pho/stress2/misc/crossmp8.sh Modified: user/pho/stress2/misc/crossmp8.sh ============================================================================== --- user/pho/stress2/misc/crossmp8.sh Wed Apr 18 11:28:16 2018 (r332667) +++ user/pho/stress2/misc/crossmp8.sh Wed Apr 18 11:31:16 2018 (r332668) @@ -58,7 +58,8 @@ if [ $# -eq 0 ]; then m=$((i + mdstart - 1)) [ ! -d ${mntpoint}$m ] && { mkdir ${mntpoint}$m; chmod 755 ${mntpoint}$m; } - mount | grep "${mntpoint}$m" | grep -q md$m && umount ${mntpoint}$m + mount | grep "${mntpoint}$m " | grep -q md$m && + umount ${mntpoint}$m mdconfig -l | grep -q md$m && mdconfig -d -u $m mdconfig -a -t swap -s ${size}m -u $m @@ -80,10 +81,14 @@ if [ $# -eq 0 ]; then for i in `jot $mounts`; do m=$((i + mdstart - 1)) + while mount | grep -q "on ${mntpoint}$m "; do + umount ${mntpoint}$m && break + sleep 1 + done mdconfig -d -u $m done ./cleanup.sh - + exit 0 else if [ $1 = find ]; then while [ -f $CONT ]; do