]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
btrfs/131: don't run with subpage blocksizes
authorJosef Bacik <josef@toxicpanda.com>
Tue, 5 Mar 2024 18:52:12 +0000 (19:52 +0100)
committerZorro Lang <zlang@kernel.org>
Mon, 11 Mar 2024 04:50:09 +0000 (12:50 +0800)
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 <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
tests/btrfs/131

index 1e072b285ecfeaaafa4ad8abe10d052a9d8f9ac3..529ee3e80f87ebecb2bd27197b267fa79e7c013a 100755 (executable)
@@ -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