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 B4A4430FC12; Fri, 12 Dec 2025 08:22:51 +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=1765527773; cv=none; b=H54m0th53x3IanbW+GDiKibeGWKOWeTS4OMrJhALpwSFM9n4fcouDPmzcLTu9nf16HZWIYrggWKh61SeCN0yCn1CBb1p6AvYR0hzISWx7AYw2mI3XZuFJif2LfptRimfll/QdVEB1jzp2XC3tYJgWyYvvNdScSOQfjnbHawYw8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765527773; c=relaxed/simple; bh=+ynCMuIpEgP00dLvOhe4vCQGGoABQ0jb70+y8o6Uqvw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UglKuXe3li6oER0IQvqW0RlkSwj9L7RwJX6E5BBg0ovVMQIW5Qy6+fYQHq3it44Y1dG5sK2QKr3b3FzXz6XCSwBrJimvaLzIjyph7oO0TDxK0n7WC9boisgqetat67f+6JWwshA3TPeERVk17f1BpJpLhafF3GSAIBbDELAU/uQ= 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=BjToDSJf; 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="BjToDSJf" 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=RKhqASIZcGds8wrjgvfnvpeSZWq5E1W7NP8bj4Rt5dc=; b=BjToDSJfbWgJULkjpjif0X8P3X ydNMHIRNTCylttmjDMNx6ZcL17QuQiNmLMR13io0dfN9xyQyUHScxVw4P03bBmezr/ItlWR8YfI/e yxaz6ZQSZAQIAXLu/SjlFzP1ckzxRd8O0aRua/oJwRKEvhD0DBSI9Di4zoqHPp/Te7I4SwhRnP+n3 gSDszkKbYH6VYrWEJ31+OTv1koqD+rEJNpF86cL3BGDaLkslM6IZ6PabJ3N6cXZQ64T/pLfKWBUVR 6Ybhs1nDBZtwgrYFy3wHjtugrBtPFcX0eV32MrAmPi847Bp/wDr17ZjgmbET9z1NrcQ6axmWXz5ms 5p9mfl2g==; 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 1vTyQM-00000000GBY-19ww; Fri, 12 Dec 2025 08:22:51 +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 07/13] xfs/185: don't use SCRATCH_{,RT}DEV helpers Date: Fri, 12 Dec 2025 09:21:55 +0100 Message-ID: <20251212082210.23401-8-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 creates loop-based data and rt devices for testing. Don't override SCRATCH_{,RT}DEV and don't use the helpers based on it because the options specified in MKFS_OPTIONS might not work for this configuration. This also means that we will now never use a log device for this test even if SCRATCH_LOGDEV was set, which is fine because the log device is not relevant for what is tested. Signed-off-by: Christoph Hellwig Reviewed-by: "Darrick J. Wong" --- tests/xfs/185 | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/tests/xfs/185 b/tests/xfs/185 index 7aceb383ce46..84139be8e66e 100755 --- a/tests/xfs/185 +++ b/tests/xfs/185 @@ -22,12 +22,11 @@ _cleanup() { cd / rm -r -f $tmp.* - _scratch_unmount + umount $SCRATCH_MNT test -n "$ddloop" && _destroy_loop_device "$ddloop" test -n "$rtloop" && _destroy_loop_device "$rtloop" test -n "$ddfile" && rm -f "$ddfile" test -n "$rtfile" && rm -f "$rtfile" - test -n "$old_use_external" && USE_EXTERNAL="$old_use_external" } _require_test @@ -64,16 +63,8 @@ rtminor=$(stat -c '%T' "$rtloop") test $ddmajor -le $rtmajor || \ _notrun "Data loopdev minor $ddminor larger than rt minor $rtminor" -# Inject our custom-built devices as an rt-capable scratch device. -# We avoid touching "require_scratch" so that post-test fsck will not try to -# run on our synthesized scratch device. -old_use_external="$USE_EXTERNAL" -USE_EXTERNAL=yes -SCRATCH_RTDEV="$rtloop" -SCRATCH_DEV="$ddloop" - -_scratch_mkfs >> $seqres.full -_try_scratch_mount >> $seqres.full || \ +$MKFS_XFS_PROG -r rtdev=$rtloop $ddloop >> $seqres.full +mount -o rtdev=$rtloop $ddloop $SCRATCH_MNT >> $seqres.full || \ _notrun "mount with injected rt device failed" # Create a file that we'll use to seed fsmap entries for the rt device, -- 2.47.3