Commit ee143f8
btrfs-progs: check: lowmem: recognize verity item keys
Commit 4e88bb6 ("btrfs-progs: enhance detection on unknown inode keys")
added stricter validation for inode keys in the lowmem mode checker,
flagging unknown key types as errors. However, it did not add cases for
BTRFS_VERITY_DESC_ITEM_KEY (36) and BTRFS_VERITY_MERKLE_ITEM_KEY (37),
causing any filesystem with fs-verity enabled files to fail the lowmem
mode check with the following error:
[5/8] checking fs roots
ERROR: ITEM[257 36 0] UNKNOWN TYPE in leaf 30490624
ERROR: ITEM[257 36 1] UNKNOWN TYPE in leaf 30490624
ERROR: ITEM[257 37 0] UNKNOWN TYPE in leaf 30490624
ERROR: ITEM[257 37 2048] UNKNOWN TYPE in leaf 30490624
ERROR: errors found in fs roots
Add the missing switch cases so that verity metadata items are
recognized and silently skipped during the lowmem check.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent e279476 commit ee143f8
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2817 | 2817 | | |
2818 | 2818 | | |
2819 | 2819 | | |
| 2820 | + | |
| 2821 | + | |
2820 | 2822 | | |
| 2823 | + | |
2821 | 2824 | | |
2822 | 2825 | | |
2823 | 2826 | | |
| |||
0 commit comments