btrfs-progs: tests: add case to handle deprecated inode cache in check

The inode_cache and involved on-disk formats are deprecated and will
have no effect since v5.11 kernel.

And in v6.11 kernel, new tree-checker will even reject data extents
belonging to those deprecated inode cache.
Lowmem check can detect such deprecated inode cache from the beginning.

This images are generated by 5.10 LTS kernels with inode cache.

Signed-off-by: Qu Wenruo <wqu@suse.com>
This commit is contained in:
Qu Wenruo 2024-09-12 18:02:41 +09:30 committed by David Sterba
parent d2a450793f
commit 15e9cac275
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!/bin/bash
#
# Verify that check can report deprecated inode cache as an error
source "$TEST_TOP/common" || exit
check_prereq btrfs
check_image() {
run_mustfail "deprecated inode cache not reported as an error" \
"$TOP/btrfs" check "$1"
}
check_all_images