Skip to content

btrfs-progs: check: add repair ability for missing root orphan item

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: check: add repair ability for missing orphan root itemcheck/main.c check/mode-common.c check/mode-common.h +1 more+49 -31 reply
2/2btrfs-progs: fsck-tests: make test case 066 to be repairabletests/fsck-tests/066-missing-root-orphan-item/.lowmem_repairable tests/fsck-tests/066-missing-root-orphan-item/test.sh+0 -142 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBoris Burkov
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs-progs: check: add repair ability for missing root orphan item

There is another report of missing root orphan item, although the latest btrfs-progs can detect such corruption, we have no way to fix it.

This makes the affected end users helpless, as the corruption can happen for affected old kernels, and that damage is persistent.

Add the repair ability to save those affected end users.

Qu Wenruo (2):
btrfs-progs: check: add repair ability for missing orphan root item
btrfs-progs: fsck-tests: make test case 066 to be repairable

 check/main.c                                  |  5 +++
 check/mode-common.c                           | 33 +++++++++++++++++++
 check/mode-common.h                           |  1 +
 check/mode-lowmem.c                           | 13 ++++++--
 .../.lowmem_repairable                        |  0
 .../066-missing-root-orphan-item/test.sh      | 14 --------
 6 files changed, 49 insertions(+), 17 deletions(-)
 create mode 100644 tests/fsck-tests/066-missing-root-orphan-item/.lowmem_repairable
 delete mode 100755 tests/fsck-tests/066-missing-root-orphan-item/test.sh

--
2.51.2