]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: btrfs: add a new test case that is future-proof
authorQu Wenruo <wqu@suse.com>
Thu, 25 Dec 2025 22:15:53 +0000 (08:45 +1030)
committerZorro Lang <zlang@kernel.org>
Sun, 25 Jan 2026 16:05:29 +0000 (00:05 +0800)
commitbc74aaf6859c097439530505dc25fc06dce77c9a
tree8bb355986c0a389e6e91c1181d4bf007a120ff64
parent8d2e1bd3d2947689921c9496b3aebb3f2a09851c
fstests: btrfs: add a new test case that is future-proof

Btrfs' v1 space cache is marked deprecated since commit 1e7bec1f7d65
("btrfs: emit a warning about space cache v1 being deprecated"), and
soon the v1 space cache mount option will be fully dropped.

Furthermore existing features like block-group-tree, zoned, and bs != ps
support are all rejecting v1 space cache or forcing the switch to v2
space cache.

The existing btrfs/131 is not going to handle the future well, and that
test case is mostly for LTS kernel testing now.

Add a new test case that is completely v1 cache free, so that it will
support the future where v1 cache is completely dropped, meanwhile still
keep the coverage for v2 cache and nospace_cache mount options.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/131
tests/btrfs/342 [new file with mode: 0755]
tests/btrfs/342.out [new file with mode: 0644]