Skip to content

Commit

Permalink
btrfs-progs: tests: add case to handle deprecated inode cache in check
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
adam900710 authored and kdave committed Sep 12, 2024
1 parent 30a1398 commit 9f2b67a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Binary file not shown.
14 changes: 14 additions & 0 deletions tests/fsck-tests/064-deprecated-inode-cache/test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9f2b67a

Please sign in to comment.