Skip to content

Commit

Permalink
btrfs-progs: fsck-tests: add a test case with deprecated inode cache
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 <wqu@suse.com>
  • Loading branch information
adam900710 committed Sep 12, 2024
1 parent 47f4b6f commit 2c133e9
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 2c133e9

Please sign in to comment.