[PATCH 1/9] fstests: allow SCRATCH_DEV_POOL for non-Btrfs filesystems

Anand Jain
2026-02-26T14:42:03Z

Tests for cloned device verification should pass on Btrfs, XFS, and ext4.
We need 2 scratch devices, allow SCRATCH_DEV_POOL for other FSs.

Signed-off-by: Anand Jain <asj@kernel.org>
---
common/rc | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/common/rc b/common/rc
index 92cb69820311..9db8b3e88996 100644
--- a/common/rc
+++ b/common/rc
@@ -3990,18 +3990,9 @@ _require_scratch_dev_pool()
ndevs=$1
fi

- # btrfs test case needs ndevs or more scratch_dev_pool; other FS not sure
- # so fail it
- case $FSTYP in
- btrfs)
- if [ "`echo $SCRATCH_DEV_POOL|wc -w`" -lt $ndevs ]; then
- _notrun "btrfs and this test needs $ndevs or more disks in SCRATCH_DEV_POOL"
- fi
- ;;
- *)
- _notrun "dev_pool is not supported by fstype \"$FSTYP\""
- ;;
- esac
+ if [ "`echo $SCRATCH_DEV_POOL|wc -w`" -lt $ndevs ]; then
+ _notrun "This test needs $ndevs or more disks in SCRATCH_DEV_POOL"
+ fi

for i in $SCRATCH_DEV_POOL; do
if [ "`_is_block_dev "$i"`" = "" ]; then
--
2.43.0