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=1796036619; b=nDrou8NaUNXILW6PkcFp0dt5aGZ7W9z7NMUh9vyx/yRM4aPsQBN5h+zLW8snvxbBgNU+ wPgwJMPFo3rFMu8jiiwGSWAzbi/lIymnSWKL4qCPjspy+gMTT8eOUSeTkPZ4VwHzExwbu cP5rEmlDUTYRv+9+/c/Lk7pl56b7fHNNHX5wpbzKLPyiEhsXXBZz51X5tceVPvbbVGsgi TPr1CqskouSQlYHiupm4gkGVpzFhcWE7pwzXoYVZxidhBuqWWsRotNSOcDYC2i2+Zztmy iCIXmbU7DdYWCLOLV1sIwm87KxYd3zUCN2vTelQ/5tQDbdD4FQbl16V7b7fh8C3x4Gw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796036619; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=OsSPDslWQHNtHcZO1U+vbU5tYftjT+vUHKtvRRxVTQk=; b=fXchKKPEJodDcwdIxHE7mhmhYBVgtmNx39Skuk2XND3SMCSwtnBEUckgr6ZF+szfrqzm XnbPjjzVH+0r7OkUQu87eF06AZzIeyNLez+urczoBq6otEHKm2szK4nzkO+fuKhIIlvlA TDikXihL4WeB6M3p9AEd9HsDdZvMvvEb/PVB3zYNOona9JMUOm4WMeCNPvHp2IKLEnIB1 a6TZA24FhcYYCrSWF/4MXwEpONrKxfVK7ka8yxsv2jpNO/MG/WvQ6TDy69p2dxI/TaGEr LBlhZZ8MMQ2vHrvocHUwp6VEwXP9Lnam9XMs60hKlGxkTagsyYKJjk6/7nfP+xemDmg== 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=oYpghWhs; 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 85A55606A31C; Mon, 30 Nov 2026 11:03:39 +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=oYpghWhs Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0E2E1F00896; Mon, 30 Nov 2026 11:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796036619; bh=OsSPDslWQHNtHcZO1U+vbU5tYftjT+vUHKtvRRxVTQk=; h=From:To:Cc:Subject:Date; b=oYpghWhsLGXYNf3rzULC+/05RgmN9UyBV+6yssY0YVq1MMZFjIDi7bweX/u/KTXQ6 DJJ36bu+291q1k01a/wpSTV9ZDuJBoa6NU/drIp0tg/VfOfO72BCQIr+tHLUdRpTaK 8o+N+6yxnNb0jlGGa2Ku2+jIV0GcZ4/WDYsQK/qmkeWQretck7nzWaH35qLx3jLH/q gGhNzkR/OTdCcGmtSYmpgj+3R4HJNXYNJGLXJr0S1XnimZzA6p8XzuQgjhpqrG9Tu+ IsA0lk+ZUkaYVc+gFEsuQkcmcRSBfhmt5C2SMj5LO9pyMHVT7FxDR90NJ1coauAanI zXHYdcUliYlng== 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 00/20] fstests: tests for cloned filesystem validation and f_fsid v2 Date: Mon, 30 Nov 2026 19:03:02 +0800 Message-ID: <20261130-f_fsid-v2-0-c11fd1a5eaeb@kernel.org> X-Mailer: git-send-email 2.43.0 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 This series adds tests validating cloned filesystem behavior and f_fsid handling across filesystems and VFS/notification/security interfaces. Changes since v1: - Addressed Zorro's review comments: - Replace umount calls with _unmount. - Fix whitespace/spacing issues. - Drop the IMA patches ("fstests: introduce _require_security_ima() helper" and "fstests: verify IMA isolation on cloned filesystems"). - Rename _require_fanotify_function() to _require_fanotify(). - Remove the temp_dev=() array in _create_cloned_loop_devs(). - Check kernel support via fanotify_init(). - Use $SEMANAGE_PROG instead of a hardcoded binary. v1: https://lore.kernel.org/fstests/awSPgGGZv7u6_SGM@zlang-mailbox/T/#t Signed-off-by: Anand Jain --- Anand Jain (20): fstests: introduce _require_clone_mount() helper fstests: introduce _create_cloned_loop_devs() helper fstests: add _clone_mount_options() helper fstests: add FSNOTIFYWAIT_PROG fstests: add _require_fanotify fstests: add _require_unique_f_fsid() helper fstests: add SEMANAGE_PROG fstests: verify fanotify isolation on cloned filesystems fstests: introduce helper _scratch_mkfs_uuid() fstests: add helpers to verify the expected f_fsid fstests: verify statfs f_fsid is derived from the filesystem UUID fstests: verify libblkid resolution of duplicate UUIDs fstests: verify exportfs file handles on cloned filesystems fstests: introduce _require_metadata_uuid() helper fstests: add _change_metadata_uuid helper fstests: test UUID consistency for clones with metadata_uuid fstests: generic/744: use new helper _require_clone_mount() fstests: generic/744: migrate to _create_cloned_loop_devs() fstests: _create_loop_device_like_bdev() remove unused variable fstests: verify f_fsid for cloned filesystems common/config | 2 + common/rc | 248 +++++++++++++++++++++++++++++++++++++++++++++++--- src/Makefile | 1 + src/feature.c | 42 ++++++++- tests/generic/744 | 72 ++++++--------- tests/generic/901 | 143 +++++++++++++++++++++++++++++ tests/generic/901.out | 7 ++ tests/generic/902 | 38 ++++++++ tests/generic/902.out | 2 + tests/generic/903 | 71 +++++++++++++++ tests/generic/903.out | 6 ++ tests/generic/905 | 79 ++++++++++++++++ tests/generic/905.out | 2 + tests/generic/906 | 74 +++++++++++++++ tests/generic/906.out | 6 ++ tests/generic/908 | 88 ++++++++++++++++++ tests/generic/908.out | 2 + 17 files changed, 821 insertions(+), 62 deletions(-) --- base-commit: 71641219a506ac62bfa231592394265ca812670e change-id: 20261130-f_fsid-4b6af701a1f2 Best regards, -- Anand Jain