From nobody Thu Jul 7 07:45:25 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CA7EB3E2080; Thu, 7 Jul 2022 07:45:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LdpNj5KHjz3sSv; Thu, 7 Jul 2022 07:45:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657179925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=X5mEHPeMIsHOPIJtR7i0A7EBYDpThClBejM5cYG3Q7E=; b=oYyTRNk1/8kAZ+vJX8vX6c3zUAMiXPgC6NqLvNuMrCedYBaeLPKSgdLR2IGpLz7214AxSw XSOeKkbqRyLmxsPpm6P1uZmKOEtdjnQAYWpC9azBNoyYK0MPunJ7Rk458VsePD9Zj9HJVX No1EE/3/IFlakU3U/iJpdGd85Ez2wnjARYhG8P84bsqjOOES8I1aTunGY7ecC4oU6m+0+7 MGEeoNIFfCgU5VmwCvhk0naDOcrZPrwou1V2CAaIhBLg4KU8fQ9y0WEPN5lEmV9TGkeGsy NjEDVqvomRqG4NbPCdGL9lOI0RT2ZjkuFSjxgte9/LWeLkzze3ln4VQ9CApggg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LdpNj4HcHzb8P; Thu, 7 Jul 2022 07:45:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2677jPPe077019; Thu, 7 Jul 2022 07:45:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2677jPCE077018; Thu, 7 Jul 2022 07:45:25 GMT (envelope-from git) Date: Thu, 7 Jul 2022 07:45:25 GMT Message-Id: <202207070745.2677jPCE077018@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Peter Holm Subject: git: a526ec4351a0 - main - stress2: Added a mount(8) test scenario List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pho X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a526ec4351a07714f9d7acde27c1d02c3ec34642 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657179925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=X5mEHPeMIsHOPIJtR7i0A7EBYDpThClBejM5cYG3Q7E=; b=Sv+uJCyORReemVpzCmH6OGq9WI6Zi58MLEojA/BZ7OK00UbCUGk4kN5VOXRbkBdVmWW3h9 H1UIlUKpFhDnaQfD17a3NxXTs1nnunzPFfYWZlcNOy1lzcsDQQdaj22vYhUa1JqnnDi66a 2C2vAFXrzFe8ZE1MuA08xQKtotELLg0ilpxfHm9wh4vqiAYP0tlfDdLajOpiz/dRoas1JY vz5SXTz+jRBs2JEcfcl5w54q4gG3oelOU+BKiPBAowoMDrKGZwNTvu1wbXqem3eMykleU6 74uh13JaEN39eVUPovyJz8rL60DLb79Rl8sBJjIRSoN0wBPaDQJtSrGriiXYDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657179925; a=rsa-sha256; cv=none; b=g+UmM27lMleQltYpXTNA6qlzWZQKoLW+o/pivTZJE0xy3KhY1zaoquwk1ERjUfvwgW3sct CNs3Cah6C8YQs89OP3/jhTXFImkTmEck2h9HeaBAQAvxr4JarCciR5HD4L/SQyZvK3QTc6 Z9WKaWbDUsoa303a+AD7BYM13eeKNND9DXdn+Rs6gZlq1PfFK1nXteCVrzjx0OdC2nIGBG mlfiZ9RSNSjYg1wyWN1U9skmIR4bU+YLZcBUy65Qsoj9s7xamB6k2BtZiB2IlF+/hEkG+k hU3VVE1YZ1z4gatFb4WE+U17fQUNC4RVkT+2VHJXBu37Ew4qx1hkmc1UDxgkvg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=a526ec4351a07714f9d7acde27c1d02c3ec34642 commit a526ec4351a07714f9d7acde27c1d02c3ec34642 Author: Peter Holm AuthorDate: 2022-07-07 07:44:55 +0000 Commit: Peter Holm CommitDate: 2022-07-07 07:44:55 +0000 stress2: Added a mount(8) test scenario --- tools/test/stress2/misc/mount7.sh | 57 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/tools/test/stress2/misc/mount7.sh b/tools/test/stress2/misc/mount7.sh new file mode 100755 index 000000000000..7ba847797a51 --- /dev/null +++ b/tools/test/stress2/misc/mount7.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# +# Copyright (c) 2022 Peter Holm +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# + +# Another parallel mount(8) test scenario + +. ../default.cfg + +mounts=15 + +../testcases/swap/swap -t 2m -i 20 & +for i in `jot $mounts $mdstart`; do + mdconfig -a -s 50m -u $i + newfs -U /dev/md$i > /dev/null + mkdir -p $mntpoint$i + start=`date +%s` + while [ $((`date +%s` - start)) -lt 120 ]; do + mount /dev/md$i $mntpoint$i && cp /etc/passwd $mntpoint$i + while mount | grep -q " on $mntpoint$i "; do + umount $mntpoint$i > /dev/null 2>&1 + done + done & + while [ $((`date +%s` - start)) -lt 120 ]; do + find $mntpoint$i -ls > /dev/null 2>&1 + done & +done +wait + +for i in `jot $mounts $mdstart`; do + mdconfig -d -u $i + rmdir $mntpoint$i +done +exit $s