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=1796036660; b=vG4otydqlI46EDLQZEUhz/L90QyUCAF9g2qaidvjcHYD2l51mKOPgJChUgk1SwlcbHQ7 gwypYzAciXy9B8jl0Lg007gZ8HlGXp5/7GW84AEF+sq/zmDw+bVPz23oHxompSJNco9pu KHSphnXL67ATE7B7CqPI0EUv/TE3sijY7BsHwv0yWCKlHtKZkFI1+hs/+Ot3ocajopl+O q8oUgo8icfFIY7gAkgwqZ5nusVJm2fQNy84iZww2lvISfbj7M/7HH3/exyuYyP305DRUQ Dae0h5lEAgnfPJh6/M2ERXwJ2vlxX55u7x38CXIICM4abFQrvDOKm/YhYr/0gZpNKIQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796036660; 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=16lC5rstxgGBR8VOn9NvSlk3jm/2rBSQjgSM/ZfOzDc=; b=EpnWgQ1K5fmXGSMwsBNfID7OvT/CZe7i45cct83Vv4gwtMtkmm/v5V9p7+IcBRnpWN6t 3Ipzch9ImjGkL6HdIZqRCHtK9C5xeU16XyJVg1gKapdOwA8gtmVRbWFtgGk7XyC4/2Q6Z ys9rnKmaCHL7ZenfiwhbHd9Qw177+Y/fOsVylPpvp2jmReiTuI8MT8o6Zz4GpNMDs8eG1 s6TIE3ZJhONgmpOkXp+9sTv8yzlRSqyRgqtDCTdF6Ezs3DAEwAKzjMJCRwa8NvD0/jGas saiMqs+u/EkqnwdVKcGoZnWadvu8wJ9Aod/CZS/khfviY+rbVkTrnbSAvMrbHLO41Nw== 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=TkwgKOfK; 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 74110606A329; Mon, 30 Nov 2026 11:04:20 +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=TkwgKOfK Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16B191F00A22; Mon, 30 Nov 2026 11:04:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796036659; bh=16lC5rstxgGBR8VOn9NvSlk3jm/2rBSQjgSM/ZfOzDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TkwgKOfKbd3+R8LareuuN+qiGYWjBZciEQHCC10aVi7Lp4M3+1jXODHsjLyUW8Y10 XHA2wKKKW7Dot5+YiP19Y6+R1ncgwjNoURWRyFnVE6wSkEhnbZpRU7caDa0it0XdQI l/OTOGO/h5xgOsnzd/hEPtvZYvTNZYHNNUQyP8IKfl7BcfnrRH8AKQkNNBBWlug00c clKqLi3F6/9Yp30+1/xD60bT9b0V7YiDUc1El+mSDEMuIBsuvtKCePz5OoKZ9UV2i6 bUcYxtZAZrIqUcFETGZ4HHNg68vSQzymkouTYlxpdqkTc7B4PGl0hnXzSII0gVavUd mbuZQqy/GHeIw== 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 17/20] fstests: generic/744: use new helper _require_clone_mount() Date: Mon, 30 Nov 2026 19:03:19 +0800 Message-ID: <20261130-f_fsid-v2-17-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 Replace _require_duplicate_fsid() with the newly introduced _require_clone_mount() helper to verify kernel support for mounting cloned block devices with duplicate UUIDs. Reviewed-by: Zorro Lang Signed-off-by: Anand Jain --- common/rc | 14 -------------- tests/generic/744 | 8 ++++---- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/common/rc b/common/rc index 22a5e2cfeadb..4bd83cdc11f4 100644 --- a/common/rc +++ b/common/rc @@ -6304,20 +6304,6 @@ _random_file() { echo "$basedir/$(ls -U $basedir | shuf -n 1)" } -_require_duplicate_fsid() -{ - case "$FSTYP" in - "btrfs") - _require_fs_sysfs_feature_attr temp_fsid - ;; - "ext4") - ;; - *) - _notrun "$FSTYP does not support duplicate fsid" - ;; - esac -} - # Can we find a program in the $PATH? _have_program() { command -v "$1" &>/dev/null diff --git a/tests/generic/744 b/tests/generic/744 index cda10e0f66ba..330d86ce826a 100755 --- a/tests/generic/744 +++ b/tests/generic/744 @@ -25,8 +25,7 @@ _cleanup() . ./common/filter . ./common/reflink -# Modify as appropriate. -_require_duplicate_fsid +_require_clone_mount _require_test _require_block_device $TEST_DEV _require_test_reflink @@ -66,11 +65,12 @@ loop_dev2=$(_create_loop_device "$loop_file2") clone_filesystem ${loop_dev1} ${loop_dev2} # Mounting original device -_mount $loop_dev1 $mnt1 +_mount $(_common_dev_mount_options) $(_clone_mount_options) $loop_dev1 $mnt1 $XFS_IO_PROG -fc 'pwrite -S 0x61 0 9000' $mnt1/foo | _filter_xfs_io # Mounting cloned device -_mount $loop_dev2 $mnt2 || _fail "mount of cloned device failed" +_mount $(_common_dev_mount_options) $(_clone_mount_options) $loop_dev2 $mnt2 \ + || _fail "mount of cloned device failed" # cp reflink across two different filesystems must fail _cp_reflink $mnt1/foo $mnt2/bar 2>&1 | _filter_test_dir -- 2.43.0