[PATCH 3/8] btrfs/131: don't run with subpage blocksizes

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



From: Josef Bacik <josef@xxxxxxxxxxxxxx>

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.

Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx>
---
 tests/btrfs/131 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/btrfs/131 b/tests/btrfs/131
index 1e072b285ecfea..529ee3e80f87eb 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.42.1





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux