Skip to content

fstests: btrfs: make space cache related tests future proof

Qu Wenruo fstests linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fstests: btrfs/131: add explicit v1 space cache requirementcommon/btrfs tests/btrfs/131+26 -61 reply
2/2fstests: btrfs: add a new test case that is future-prooftests/btrfs/131 tests/btrfs/340 tests/btrfs/340.out+122 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchZorro Lang
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] fstests: btrfs: make space cache related tests future proof

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
Signature · 1 line
2.51.2