Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 915A330F7E3; Fri, 12 Dec 2025 08:22:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765527778; cv=none; b=Od0mAu5LEfjd2JqmeuI/3Lv3+KXjauy5ZmIt6RCxWduYd69eEXIY7ebgpdh2mhbtt+it6v/J2RrtPkjR3LVlYPUmdZfBjfdAtRDlYojFAqERMwSocF74ooHFrmow9NMRj7QelnP8lSovAJ89VnIpMYBu7OrWF2KzJLHIfNkwe9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765527778; c=relaxed/simple; bh=BRZYB7CthmeA2N8BYte+xrgQ7h5IQbDgY/Jf+uwRRg0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hWKcLIAuLxzZoBp72EOLO9Y9nUi0vDa4HbjaCNIqHUj9BHLSzKIBBZB4474bn4spieVDADEQZGy/9aGWsIe6K/vRw8ofJIIZ8beflLd6OHKFpUSy59AKKPbKqa18TC5bEGxX85l0FYEnDQK3eh38Sy+cSeuxpXDLF4Z1wxuKbIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=GkHwI7fh; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="GkHwI7fh" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=wX+paZeY07bBplHe0qnMCKabUKmg4Oq0CosK4T6T44I=; b=GkHwI7fhDpeRCobMF5LjOzcKex yxyq6k/sKaUCQXlLQ8t6ljGjGrV0Ff3kIklhmhvV2JLZCPL5H39IBefPKj3AjGObfXoQNmg9NqoGV bKdIJvnCCrDjx3zhcjaHOxqG6Kxrzk6sNQfY7HbvQPD0nOKlSPxMuk+k9y3vyem6Se0wPjrTPt5Kn VJv39ZwLibee0Ll/IyySXH9IkQIm0A7he22P+g/hRfzDWwIdn3Np8Lar8ztONqPCyiCmCgE4SyJ24 KFsDW7Xdjbx0P80sH+HyzrKMx6FIgjaVTHVqU/gW1oWtwj6BkiX4i2nfUHmVYEcp4oP1o7oW6mvA6 sDQp+Pyg==; Received: from 2a02-8389-2341-5b80-d601-7564-c2e0-491c.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:d601:7564:c2e0:491c] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vTyQS-00000000GCt-2QlB; Fri, 12 Dec 2025 08:22:57 +0000 From: Christoph Hellwig To: Zorro Lang Cc: Anand Jain , Filipe Manana , "Darrick J. Wong" , fstests@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org Subject: [PATCH 08/13] xfs/424: don't use SCRATCH_DEV helpers Date: Fri, 12 Dec 2025 09:21:56 +0100 Message-ID: <20251212082210.23401-9-hch@lst.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251212082210.23401-1-hch@lst.de> References: <20251212082210.23401-1-hch@lst.de> Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html This tests forces external devices to be disabled by calling mkfs.xfs directly and overriding SCRATCH_{LOG,RT}DEV, but the options specified in MKFS_OPTIONS might not work for this configuration. Instead hard code the calls to xfs_db and don't modify the scratch device configuration. Signed-off-by: Christoph Hellwig Reviewed-by: "Darrick J. Wong" --- tests/xfs/424 | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/tests/xfs/424 b/tests/xfs/424 index 6078d34897e7..61e9de375383 100755 --- a/tests/xfs/424 +++ b/tests/xfs/424 @@ -25,17 +25,11 @@ filter_dbval() awk '{ print $4 }' } -# Import common functions. . ./common/filter -# Modify as appropriate - -# Since we have an open-coded mkfs call, disable the external devices and -# don't let the post-check fsck actually run since it'll trip over us not -# using the external devices. +# Since we have an open-coded mkfs call, don't let the post-check fsck run since +# it would trip over us not using the external devices. _require_scratch_nocheck -export SCRATCH_LOGDEV= -export SCRATCH_RTDEV= echo "Silence is golden." @@ -62,30 +56,31 @@ for SECTOR_SIZE in $sector_sizes; do grep -q 'finobt=1' && finobt_enabled=1 for TYPE in agf agi agfl sb; do - DADDR=`_scratch_xfs_db -c "$TYPE" -c "daddr" | filter_dbval` - _scratch_xfs_db -c "daddr $DADDR" -c "type $TYPE" + DADDR=`$XFS_DB_PROG -c "$TYPE" -c "daddr" $SCRATCH_DEV | + filter_dbval` + $XFS_DB_PROG -c "daddr $DADDR" -c "type $TYPE" $SCRATCH_DEV done - DADDR=`_scratch_xfs_db -c "sb" -c "addr rootino" -c "daddr" | + DADDR=`$XFS_DB_PROG -c "sb" -c "addr rootino" -c "daddr" $SCRATCH_DEV | filter_dbval` - _scratch_xfs_db -c "daddr $DADDR" -c "type inode" - DADDR=`_scratch_xfs_db -c "agf" -c "addr bnoroot" -c "daddr" | + $XFS_DB_PROG -c "daddr $DADDR" -c "type inode" $SCRATCH_DEV + DADDR=`$XFS_DB_PROG -c "agf" -c "addr bnoroot" -c "daddr" $SCRATCH_DEV | filter_dbval` - _scratch_xfs_db -c "daddr $DADDR" -c "type bnobt" - DADDR=`_scratch_xfs_db -c "agf" -c "addr cntroot" -c "daddr" | + $XFS_DB_PROG -c "daddr $DADDR" -c "type bnobt" $SCRATCH_DEV + DADDR=`$XFS_DB_PROG -c "agf" -c "addr cntroot" -c "daddr" $SCRATCH_DEV | filter_dbval` - _scratch_xfs_db -c "daddr $DADDR" -c "type cntbt" - DADDR=`_scratch_xfs_db -c "agi" -c "addr root" -c "daddr" | + $XFS_DB_PROG -c "daddr $DADDR" -c "type cntbt" $SCRATCH_DEV + DADDR=`$XFS_DB_PROG -c "agi" -c "addr root" -c "daddr" $SCRATCH_DEV | filter_dbval` - _scratch_xfs_db -c "daddr $DADDR" -c "type inobt" + $XFS_DB_PROG -c "daddr $DADDR" -c "type inobt" $SCRATCH_DEV if [ $finobt_enabled -eq 1 ]; then - DADDR=`_scratch_xfs_db -c "agi" -c "addr free_root" -c "daddr" | - filter_dbval` - _scratch_xfs_db -c "daddr $DADDR" -c "type finobt" + DADDR=`$XFS_DB_PROG -c "agi" -c "addr free_root" -c "daddr" $SCRATCH_DEV | + filter_dbval` + $XFS_DB_PROG -c "daddr $DADDR" -c "type finobt" $SCRATCH_DEV fi - _scratch_xfs_db -c "daddr $DADDR" -c "type text" - _scratch_xfs_db -c "daddr $DADDR" -c "type data" + $XFS_DB_PROG -c "daddr $DADDR" -c "type text" $SCRATCH_DEV + $XFS_DB_PROG -c "daddr $DADDR" -c "type data" $SCRATCH_DEV done # success, all done -- 2.47.3