From: Josef Bacik Date: Tue, 5 Mar 2024 18:52:12 +0000 (+0100) Subject: btrfs/131: don't run with subpage blocksizes X-Git-Tag: xfs-zoned-2024-06-07~135 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=46bc2d68fa746b5d133815641f6263a56ef49f1d;p=users%2Fhch%2Fxfstests-dev.git 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 --- diff --git a/tests/btrfs/131 b/tests/btrfs/131 index 1e072b285..529ee3e80 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