Before this patchset, the only way to repair invalid extent item
generation is to use --init-extent-tree, which is really a bad idea.
To rebuild the whole extent tree just for one corrupted extent item?
I must be insane at that time.
This patch introduces the proper extent item generation repair
functionality for both mode, and alter existing test case to also test
repair.
Qu Wenruo (3):
btrfs-progs: check/lowmem: Repair invalid extent item generation
btrfs-progs: check/original: Repair extent item generation
btrfs-progs: tests/fsck-044: Enable repair test for invalid extent
item generation
check/main.c | 66 +++++++++++++++++
check/mode-lowmem.c | 74 +++++++++++++++++++
.../.lowmem_repairable | 0
.../test.sh | 19 -----
4 files changed, 140 insertions(+), 19 deletions(-)
create mode 100644 tests/fsck-tests/044-invalid-extent-item-generation/.lowmem_repairable
delete mode 100755 tests/fsck-tests/044-invalid-extent-item-generation/test.sh
--
2.24.1