btrfs-progs/check
Qu Wenruo b858e3b5c2 btrfs-progs: check/original: don't reset extent generation for check_block
In check_block(), we unconditionally reset extent_record::generation.

This is in fact correct, but this makes original mode fail to detect bad
extent item generation.

So change to behavior to set the generation if and only if the tree
block generation is higher.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2020-12-10 17:10:30 +01:00
..
common.h btrfs-progs: move ctree.c to kernel-shared/ 2020-08-31 17:01:05 +02:00
main.c btrfs-progs: check/original: don't reset extent generation for check_block 2020-12-10 17:10:30 +01:00
mode-common.c btrfs-progs: check/lowmem: add ability to repair extent item generation 2020-12-10 17:10:30 +01:00
mode-common.h btrfs-progs: check/lowmem: add ability to repair extent item generation 2020-12-10 17:10:30 +01:00
mode-lowmem.c btrfs-progs: check/lowmem: add ability to repair extent item generation 2020-12-10 17:10:30 +01:00
mode-lowmem.h btrfs-progs: check: drop unused fs_info 2020-08-31 17:01:03 +02:00
mode-original.h btrfs-progs: check/original: Add check and repair for invalid inode generation 2019-11-18 19:21:07 +01:00
qgroup-verify.c btrfs-progs: move transaction.c to kernel-shared/ 2020-08-31 17:01:06 +02:00
qgroup-verify.h btrfs-progs: move ctree.c to kernel-shared/ 2020-08-31 17:01:05 +02:00