Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: check: add repair ability for missing root orphan item
@ 2025-11-14 21:45 Qu Wenruo
  2025-11-14 21:45 ` [PATCH 1/2] btrfs-progs: check: add repair ability for missing orphan root item Qu Wenruo
  2025-11-14 21:46 ` [PATCH 2/2] btrfs-progs: fsck-tests: make test case 066 to be repairable Qu Wenruo
  0 siblings, 2 replies; 6+ messages in thread
From: Qu Wenruo @ 2025-11-14 21:45 UTC (permalink / raw)
  To: linux-btrfs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-11-19 23:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-14 21:45 [PATCH 0/2] btrfs-progs: check: add repair ability for missing root orphan item Qu Wenruo
2025-11-14 21:45 ` [PATCH 1/2] btrfs-progs: check: add repair ability for missing orphan root item Qu Wenruo
2025-11-19 23:02   ` Boris Burkov
2025-11-14 21:46 ` [PATCH 2/2] btrfs-progs: fsck-tests: make test case 066 to be repairable Qu Wenruo
     [not found]   ` <314461b6-9c30-4f19-aed3-486656db661e@libero.it>
2025-11-15 10:45     ` Qu Wenruo
2025-11-19 23:03   ` Boris Burkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox