From 46bc2d68fa746b5d133815641f6263a56ef49f1d Mon Sep 17 00:00:00 2001 From: Josef Bacik Date: Tue, 5 Mar 2024 19:52:12 +0100 Subject: [PATCH] btrfs/131: don't run with subpage blocksizes This test requires a feature that is incompatible with subpage blocksizes. Check to see if that's what we're testing and simply skip this test. Reviewed-by: Anand Jain Signed-off-by: Josef Bacik Signed-off-by: Anand Jain --- tests/btrfs/131 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/btrfs/131 b/tests/btrfs/131 index 1e072b28..529ee3e8 100755 --- a/tests/btrfs/131 +++ b/tests/btrfs/131 @@ -21,6 +21,10 @@ _require_btrfs_fs_feature free_space_tree # Zoned btrfs does not support space_cache(v1) _require_non_zoned_device "${SCRATCH_DEV}" +_scratch_mkfs >/dev/null 2>&1 +[ "$(_get_page_size)" -gt "$(_scratch_btrfs_sectorsize)" ] && \ + _notrun "cannot run with subpage sectorsize" + mkfs_v1() { _scratch_mkfs >/dev/null 2>&1 -- 2.47.3