[PATCH 0/7] btrfs: Misc test fixes for large block/node sizes

Nirjhar Roy (IBM)
2025-07-29T06:23:06Z

Some of the btrfs and generic tests are written with 4k block/node size in mind.
This patch fixes some of those tests to be scalable with other block/node sizes too.
We caught this bugs while running the auto group tests on btrfs with large
block/node sizes.

Nirjhar Roy (IBM) (7):
common/filter: Add a helper function to filter offsets and sizes
common/btrfs: Add a helper function to get the nodesize
btrfs/137: Make this compatible with all block sizes
btrfs/200: Make this test scale with the block size
generic/563: Increase the write tolerance to 6% for larger nodesize
btrfs/301: Make this test compatible with all block sizes.
generic/274: Make the test compatible with all blocksizes.

common/btrfs | 9 +++
common/filter | 14 +++++
tests/btrfs/137 | 135 +++++++++++++++++++++++++++++---------------
tests/btrfs/137.out | 59 ++-----------------
tests/btrfs/200 | 24 +++++---
tests/btrfs/200.out | 8 +--
tests/btrfs/301 | 8 ++-
tests/generic/274 | 21 +++----
tests/generic/563 | 17 +++++-
9 files changed, 171 insertions(+), 124 deletions(-)

--
2.34.1