Skip to content

Commit 11773f4

Browse files
committed
btrfs-progs: fsck-tests: add a test case with deprecated inode cache
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 <[email protected]>
1 parent 9e43e5f commit 11773f4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
#
3+
# Verify that check can report deprecated inode cache as an error
4+
5+
source "$TEST_TOP/common" || exit
6+
7+
check_prereq btrfs
8+
9+
check_image() {
10+
run_mustfail "deprecated inode cache not reported as an error" \
11+
"$TOP/btrfs" check "$1"
12+
}
13+
14+
check_all_images

0 commit comments

Comments
 (0)