public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fstests: btrfs: make space cache related tests future proof
@ 2025-12-25 22:15 Qu Wenruo
  2025-12-25 22:15 ` [PATCH 1/2] fstests: btrfs/131: add explicit v1 space cache requirement Qu Wenruo
  2025-12-25 22:15 ` [PATCH 2/2] fstests: btrfs: add a new test case that is future-proof Qu Wenruo
  0 siblings, 2 replies; 5+ messages in thread
From: Qu Wenruo @ 2025-12-25 22:15 UTC (permalink / raw)
  To: linux-btrfs, fstests

The existing btrfs/131 is testing no space cache, v1 space cache and v2
space cache mount options.

It's fine for LTS kernels as they will stay there for a long time with
v1 space cache support.

However v1 space cache is already deprecated since commit 1e7bec1f7d65
("btrfs: emit a warning about space cache v1 being deprecated"), and the
kernel support for v1 cache will drop soon.

In that case btrfs/131 will cause false alerts, and we will have no test
case covering no space cache and v2 space cache mount options.

The series will:

- Enhance btrfs/131 to skip the test if the kernel has no v1 cache support
  This is done by a more explicit check.

- Add a new test case without v1 cache
  The newer one can cover cases which is not covered before, including:
  * bs > ps cases
  * bs < ps cases
  * zoned devices

Qu Wenruo (2):
  fstests: btrfs/131: add explicit v1 space cache requirement
  fstests: btrfs: add a new test case that is future-proof

 common/btrfs        |  25 +++++++++++
 tests/btrfs/131     |  12 +++---
 tests/btrfs/340     | 103 ++++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/340.out |  15 +++++++
 4 files changed, 148 insertions(+), 7 deletions(-)
 create mode 100755 tests/btrfs/340
 create mode 100644 tests/btrfs/340.out

-- 
2.51.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-18 18:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-25 22:15 [PATCH 0/2] fstests: btrfs: make space cache related tests future proof Qu Wenruo
2025-12-25 22:15 ` [PATCH 1/2] fstests: btrfs/131: add explicit v1 space cache requirement Qu Wenruo
2026-01-18 18:30   ` Zorro Lang
2025-12-25 22:15 ` [PATCH 2/2] fstests: btrfs: add a new test case that is future-proof Qu Wenruo
2026-01-18 18:31   ` Zorro Lang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox