btrfs-progs/check
Mark Harmstone d8317a445c btrfs-progs: check: add check for metadata level mismatch
For a skinny metadata item in the extent tree, the key offset represents
the level of the tree it points to. This adds a check that these values
match, as otherwise it can cause a volume to go readonly when deleting a
large number of inodes.

See https://github.com/maharmstone/ntfs2btrfs/issues/51

Pull-request: #623
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-09-12 23:18:34 +02:00
..
clear-cache.c btrfs-progs: remove root argument from free_extent and inc_extent_ref 2023-05-26 18:02:30 +02:00
clear-cache.h btrfs-progs: tune: add --convert-to-free-space-tree option 2023-05-26 18:02:27 +02:00
common.h btrfs-progs: sync extent-io-tree.[ch] and misc.h from the kernel 2023-05-26 18:02:29 +02:00
main.c btrfs-progs: check: add check for metadata level mismatch 2023-09-12 23:18:34 +02:00
mode-common.c btrfs-progs: tune: add the ability to generate new data checksums 2023-05-26 18:02:32 +02:00
mode-common.h btrfs-progs: check: convert int to bool in a few helpers 2023-07-27 14:45:29 +02:00
mode-lowmem.c btrfs-progs: fix more typos found by codespell 2023-08-28 17:24:24 +02:00
mode-lowmem.h btrfs-progs: check: update include lists 2022-10-11 09:06:12 +02:00
mode-original.h btrfs-progs: check: add check for metadata level mismatch 2023-09-12 23:18:34 +02:00
qgroup-verify.c btrfs-progs: update read_tree_block to match the kernel definition 2023-05-26 18:02:30 +02:00
qgroup-verify.h btrfs-progs: check: update include lists 2022-10-11 09:06:12 +02:00
repair.c btrfs-progs: sync tree-checker.[ch] from kernel 2023-05-26 18:02:30 +02:00
repair.h btrfs-progs: add a btrfs check helper for checking blocks 2023-05-26 18:02:28 +02:00