From nobody Thu Oct 27 08:00:08 2022 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 4MydQ06q35z4gYFG; Thu, 27 Oct 2022 08:00:08 +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 4MydQ06Njlz3kVy; Thu, 27 Oct 2022 08:00:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666857608; 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=FYZQd0VbBwbybYgLApOqrAXRXyBun6kKZk8GcqEraJo=; b=i5/jyljmKWNrSiA88F92WOipUixhlgvF3zeTm2FbDsp8l59pEwCI7BXVghKkKeo0D7ELn5 wpoXCsR9IfRTljIlJF1tUd2ZNCFsjKG8aEcq4S86Ok96FcHyRVBXeE//Bw+I770bkCUL2v 5jMIAZi/HfO8z62DI7kAzir5JN9nT4m+0mdd7ftgM3iNsXnEcXcpZ5QG704aHrIS3Tn9h3 ueJe0R6dsR5FMN/quxWHChLrbJsandHQoI9jrS6Wq8OBpfkrecgu45gLUh5Q3gD3xNp+jr S4ZlHCF0viIJBQ86TNWdBWPrPEUb8F/lvPoGNeKgCKwG5oaS5XwRu5ntUFwUxw== 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 4MydQ0588fzqTq; Thu, 27 Oct 2022 08:00:08 +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 29R808fx072512; Thu, 27 Oct 2022 08:00:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29R808EI072509; Thu, 27 Oct 2022 08:00:08 GMT (envelope-from git) Date: Thu, 27 Oct 2022 08:00:08 GMT Message-Id: <202210270800.29R808EI072509@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: e23445275ab0 - main - stress2: Added a regression test for a ffs validate_sblock() fix 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: e23445275ab04c8ad45e478d73fa164ce7b1ba4b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666857608; 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=FYZQd0VbBwbybYgLApOqrAXRXyBun6kKZk8GcqEraJo=; b=oglc2kVLuLGiNCV7M/ngooyJcog19eSol4olr0PV0IDDHsbX7U7PR5YMcUkQNtUjvy5fZV h9Bmd4j9DAEsWxsD/poejK7C4B98G1OR7HbNnPTxkIq8ztrwju55akEICA8fwhgQo2OGMy l3cIxMazkLO4ZGUpeU435lERfBYjRwpH1I4++ALnDo1Rc52efUGMxqEXzoPmqcPFQL4MZL Id5A/DJsit2XojAvM69udekY6rkbWBRYLHcGhOtLN7JEtnPh6m8/ITUmDLau8lcsWlGm0q ghZC2aCV/X5Sw/4m13fUvNsgrIRPFoK4SQ843b01TCUtYIba79JVY1L5pqhenw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666857608; a=rsa-sha256; cv=none; b=rHhT45DaA5A+x5V4LCtyvWCr3XwApGWXL2HkDsT8BeBCXGI/NLU7pK4k2pxvMMF9iezXnG D7gNFJT7TwNMYYHok2/k98uzDtayLlLKYicNvE4Nhj57uY7dx5JMKVe382I4IDPT+/m61m 4CDTmewIJ+IwkRRvf+XtqA8O/06/wVJspSRLJWH0sL6k3Z1Z9hvBslhqPH2q7jpUDbj0El xvaKyyPrnHPvN2j+XQvM4HyzgB5QMKWdQIPOkl2q0fkcU7RyMWFMuvlgRQtF4pRxwJGJu0 F4Xlgp++qzL7kbBYzV2yO7GzlMhijhlNylB4FCU6BcXzO0u9AzfdhTrUh6Dyog== 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=e23445275ab04c8ad45e478d73fa164ce7b1ba4b commit e23445275ab04c8ad45e478d73fa164ce7b1ba4b Author: Peter Holm AuthorDate: 2022-10-27 07:57:57 +0000 Commit: Peter Holm CommitDate: 2022-10-27 07:57:57 +0000 stress2: Added a regression test for a ffs validate_sblock() fix --- tools/test/stress2/misc/newfs7.sh | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/tools/test/stress2/misc/newfs7.sh b/tools/test/stress2/misc/newfs7.sh new file mode 100755 index 000000000000..4b4f210a721b --- /dev/null +++ b/tools/test/stress2/misc/newfs7.sh @@ -0,0 +1,53 @@ +#!/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. +# + +[ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 +. ../default.cfg + +# "mount: /dev/md10: Invalid fstype: Invalid argument" seen. +# Reported by: soralx@cydem.org +# Fixed by: 017367c1146a + +set -eu +prog=`basename ${0%.sh}` +log=/tmp/$prog.log +s=0 +mdconfig -a -t swap -s 32T -u $mdstart +newfs -L tst0 -U -b 65536 -f 8192 -d 1048576 -g 131072 -h 16 -i 1048576 \ + /dev/md$mdstart > /dev/null || s=1 +set +e +mount /dev/md$mdstart $mntpoint && umount $mntpoint || s=$((s | 2)) +fsck_ffs -fy md$mdstart > $log 2>&1 || s=$((s | 4)) +grep -Eq "IS CLEAN|MARKED CLEAN" $log || s=$((s | 8)) +grep -Eq "WAS MODIFIED" $log && s=$((s | 16)) +[ $s -ne 0 ] && tail -10 $log +mdconfig -d -u $mdstart +rm -f $log + +exit $s