Skip to content

btrfs-progs: Do proper extent item generation repair

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: check/lowmem: Repair invalid extent item generationcheck/mode-lowmem.c+74 -00 replies
2/3btrfs-progs: check/original: Repair extent item generationcheck/main.c+66 -00 replies
3/3btrfs-progs: tests/fsck-044: Enable repair test for invalid extent item generationtests/fsck-tests/044-invalid-extent-item-generation/.lowmem_repairable tests/fsck-tests/044-invalid-extent-item-generation/test.sh+0 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] btrfs-progs: Do proper extent item generation repair

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
Signature · 1 line
2.24.1