aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2024-03-05 19:52:12 +0100
committerZorro Lang <zlang@kernel.org>2024-03-11 12:50:09 +0800
commit46bc2d68fa746b5d133815641f6263a56ef49f1d (patch)
tree3fd3d01f35eb8ab7601239e37960dc0ce482c7e9
parent51f280cfa1243e2fc6406d06a411bb138c6f8d29 (diff)
downloadxfstests-dev-46bc2d68fa746b5d133815641f6263a56ef49f1d.tar.gz
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 <anand.jain@oracle.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Anand Jain <anand.jain@oracle.com>
-rwxr-xr-xtests/btrfs/1314
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/btrfs/131 b/tests/btrfs/131
index 1e072b285e..529ee3e80f 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