From nobody Mon Feb 06 10:10:49 2023 X-Original-To: dev-commits-src-all@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 4P9MTj4FP2z3nnfh; Mon, 6 Feb 2023 10:10:49 +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 4P9MTj3pqhz3hwh; Mon, 6 Feb 2023 10:10:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675678249; 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=bFRoaYihnOpBgcewdv7bJuqXjgay1AWKa1v5pDJPvJE=; b=T5aJ+LsOnA0hLkcm69v1R5jKPYbWZshaGnpty0EeZnv3N7RzB7GFAAVtxoPuZHn59acYrN ZY1RP4wYfrMl3FbRRddTz7qNDvl5g6WT5McY1WK9/HoYOKjAwIaMsdljlJpqG42V+CCM1Q xGfdRD7/nOSxVgEFGX7RwbQ3ijBeoW4b73uRwDfC3eVmDrRYjjnrrDQ/GpBrd3hMfUo/4Y QGmViSjiBf34LtCxjB2Z5AxUPOdXlULpUV7CGU0fw4BiiG0OM7bfYBf3RvEG+LiS26tbBX kuoHLv3HDahMWiirRZyiI5X2vMrQy5dcBpOvdYswnx2kd4r8wgWlqRLqRGlT+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675678249; 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=bFRoaYihnOpBgcewdv7bJuqXjgay1AWKa1v5pDJPvJE=; b=RMqI8fThImNhKHynh/JtMJqdviYUEP1ZFvrOWfWV/c5zxePnTioogrzAKz94tMwxGOJ9+M e3GASzYyR/UBigQSacr17+qU4eb6YNTnIbQX8iYmOMDskTMLFhC3EsjH1Bm1RvEU7UYOuF SFE70kn8Q2cIVrWaijDDgLsKikLd/hLUfz7ltg2Zs/jPJG/AYZtTtVr/zuj4FSudC5cuFN f/pKjI1uCNgZMNYtJovL+dWLzPabxocqxZjhu1wndQ5uBQPJet8NYhYRVvLC5x+rtfWuMd TAuhv/hhn0GxnH0dnd97wZUlqmW6D2bCcsECtREbEGTnj17bY4pwwq4jhyVldw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675678249; a=rsa-sha256; cv=none; b=PoL5otEjpDcuFDiVXJ6mEWutKf21G9yFhHirBCgi4PfMsWdtLp7ETwQ6ugF76vKUgTClV6 Ptfh9yiS4TtLm4t66LbMDtKGrw7mQtFXl1X5mgDL3RXsC7ERTSklSSD/denuQ9/PU+zLLJ DjsejE23Lrh8UK3qxF6Of8IUPkvsmUEM4Uyx6JSrz/LgtJ/mr6P1O1imadkt3fji430aBe 5ysMQZrfVAxz6qW1M2NaIIaac7QiSTLsGA7UvG85/+WW7ie9QA7MNs2Eblf3ohOJA35WB4 OF1fnNIAN194lpTTFUiDyehycM8pYRQactMnyhIyEy6EFoTSxOBcHCJZbtmuVQ== 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 4P9MTj2tGHzW0j; Mon, 6 Feb 2023 10:10:49 +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 316AAnXB011037; Mon, 6 Feb 2023 10:10:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 316AAnQV011036; Mon, 6 Feb 2023 10:10:49 GMT (envelope-from git) Date: Mon, 6 Feb 2023 10:10:49 GMT Message-Id: <202302061010.316AAnQV011036@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: 0126bd3e6ca4 - main - stress2: Return error on exit. Run test for longer List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 0126bd3e6ca43c350437fa8bfe72958a5aad5984 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=0126bd3e6ca43c350437fa8bfe72958a5aad5984 commit 0126bd3e6ca43c350437fa8bfe72958a5aad5984 Author: Peter Holm AuthorDate: 2023-02-06 10:09:52 +0000 Commit: Peter Holm CommitDate: 2023-02-06 10:09:52 +0000 stress2: Return error on exit. Run test for longer --- tools/test/stress2/misc/mkdir.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/test/stress2/misc/mkdir.sh b/tools/test/stress2/misc/mkdir.sh index 155de9b61cc6..39cc828f0303 100755 --- a/tools/test/stress2/misc/mkdir.sh +++ b/tools/test/stress2/misc/mkdir.sh @@ -28,7 +28,7 @@ # # Demonstrate incorrect "out of inodes" message with SU enabled. -# No issue without SU. +# No issue seen with SU+J [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 . ../default.cfg @@ -45,18 +45,23 @@ mdconfig -a -t swap -s 100m -u $mdstart echo "newfs $flags /dev/md$mdstart" newfs $flags /dev/md$mdstart > /dev/null mount /dev/md$mdstart $mntpoint -jot 10 | xargs -I% mkdir $mntpoint/% set +e ifree1=`df -i $mntpoint | tail -1 | awk '{print $7}'` before=`df -i $mntpoint` n=$(((ifree1 - 5) / 10)) -for i in `jot 5`; do +jot 10 | xargs -I% mkdir $mntpoint/% +start=`date +%s` +while [ $((`date +%s` - start)) -lt 180 ]; do for j in `jot 10`; do jot $n | xargs -P0 -I% mkdir $mntpoint/$j/% jot $n | xargs -P0 -I% rmdir $mntpoint/$j/% done -done 2>&1 | head -5 +done 2>&1 | tee $log | head -5 +[ -s $log ] && s=3 +jot 10 | xargs -I% rmdir $mntpoint/% +umount $mntpoint; mount /dev/md$mdstart $mntpoint + ifree2=`df -i $mntpoint | tail -1 | awk '{print $7}'` after=`df -i $mntpoint | tail -1` if [ $ifree1 -ne $ifree2 ]; then