From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796036621; b=w5A1NqX9gq05Nszfn05oTdLL5HiU01djynJ71p1ViykBAA14HOD+r33B2JaDnFWmsYqZ tiMR2SUZspRk8nZlQnA4feTxsrsXMz1F6CaaAIE6t4qaOZgFRnIoTmkYqslIUU0sewuXd 7w/p+9cs5z6dnUK33uOc3AdYbe03mSbfAGMYCzrLSvLfc/pl2txMkeeiXM5CU0S+87hdC L64h6D2++6sjbwgApsDt3KHGP/wVva90NjRu56H4isHuhPK2U8EwXprYVlCns6diRdOg7 2iDb4MS5PRHq6+LP6FQgrHw+VAcMG2iaB3IwU9s7zKE4UNxapCpSnoaKCfWmTgFuLbw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796036621; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=mdj1eSEl9+KRlSFe+yr0uu43RC28ri1yAjsgzqxpR1c=; b=UG+NcyBYmMbBwfSIy+CzR7xJBf3c4YbTTOMyj+fSfNoUWa3wD79IIeXyNEV+82vc6/Ru uww/QpdgbLRvF0vGlk0Nozvo11trJWOPfG+eaLaDPGVgcxbkqBweKstF+M2UTDsGPeNjk Md3p57oC4lYu1qiRd5Mr5rySkQtg8CnYINaItNW1omk1RtNsuToLlwH0HeN/dwoXmtGCh /lXCNSYubxB9l1g7xG2Plu+B235a8LYI1Wfb2NI1qPFeEUUb9uq0urp0yKO+OCsAgOSyx Ycwzvy0+G9fCdaooOIz4Au7iHyeYuT+KA6zlyKPg/jh33BayKoPn+BBgtBYV3N3arUw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DadsJCzM; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8148C606A32A; Mon, 30 Nov 2026 11:03:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DadsJCzM Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB88C1F00896; Mon, 30 Nov 2026 11:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796036621; bh=mdj1eSEl9+KRlSFe+yr0uu43RC28ri1yAjsgzqxpR1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DadsJCzMu7tYnHJLdqE9Dml++YO9CX3hkluJFS9wTuVT6iRNPu9ZDfO/1G+1S/V87 A+hJgpH8cY3a81/wzQlQMnluI20KRyXresla4KbIioAURbR4dV9FbpLdm2APxrKjXa Yo4u21JgHJDt6nfBSGJQO3x4QJBQl/jLaKjrzngKJVZvqzA8SpVHI8BNsFAWNekrAm aDFQZczQNiCHJQ3izzWgHGELbFTbRDZyAl2TuzTHaG+WkQqNqPM5jKaa+VXTFS3G50 XY27hq/QGpO+aCgvgxcnQZs4w0a0tbU7NSDb0vWNNxuRx6IfySXqFoZzfTQcTkJvrm mp0lpLGX89SgQ== From: Anand Jain To: fstests@vger.kernel.org Cc: zlang@kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH v2 01/20] fstests: introduce _require_clone_mount() helper Date: Mon, 30 Nov 2026 19:03:03 +0800 Message-ID: <20261130-f_fsid-v2-1-c11fd1a5eaeb@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261130-f_fsid-v2-0-c11fd1a5eaeb@kernel.org> References: <20261130-f_fsid-v2-0-c11fd1a5eaeb@kernel.org> X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Add _require_clone_mount() to common/rc to check whether the filesystem supports mounting cloned block devices simultaneously. For Btrfs, it verifies kernel support for the temp_fsid feature, while skipping unsupported filesystem types with _notrun. Reviewed-by: Zorro Lang Signed-off-by: Anand Jain --- common/rc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/common/rc b/common/rc index 750a8d836ccd..e6d2acf84dc6 100644 --- a/common/rc +++ b/common/rc @@ -6193,6 +6193,21 @@ _force_inplace_writes() esac } +_require_clone_mount() +{ + case "$FSTYP" in + xfs|ext4|f2fs) + # No kernel-side restriction; always supported + ;; + btrfs) + _require_fs_sysfs_feature_attr temp_fsid + ;; + *) + _notrun "$FSTYP does not support mounting cloned devices simultaneously" + ;; + esac +} + # Test that a filesystem can do writes to a file in place (without allocating # new extents, without Copy-On-Write semantics). _require_inplace_writes() -- 2.43.0