fstests: btrfs: make space cache related tests future proof
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fstests: btrfs/131: add explicit v1 space cache requirementcommon/ tests/ | +26 | 1 reply | |
| 2/2 | fstests: btrfs: add a new test case that is future-prooftests/ tests/ tests/ | +122 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Zorro Lang |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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