public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] btrfs-progs: add repair support to delete orphan
@ 2026-02-05 23:59 Qu Wenruo
  2026-02-05 23:59 ` [PATCH 1/3] btrfs-progs: check: report all orphan free space info keys Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Qu Wenruo @ 2026-02-05 23:59 UTC (permalink / raw)
  To: linux-btrfs

This is the same PR in github:
https://github.com/kdave/btrfs-progs/pull/1083

The mail thread is mostly for tracking and review purposes.

Since v6.16.1 btrfs check adds the ability to detect orphan free space
entries, and older mkfs.btrfs forgot to delete free space entries of
temporary chunks, which can be detected by newer btrfs-progs now.

Although we're already pushing for a kernel auto fix, the kernel fix
will take some time to reach upstream, and more time to reach distros.

So there is still some value to have the repair ability in btrfs-check.

Furthermore, the new repair ability is more flex than the kernel one,
which can handle orphan free space info key, not only the ones exposed
by the recent btrfs-check.
Although only the recent exposed one is tested.

Qu Wenruo (3):
  btrfs-progs: check: report all orphan free space info keys
  btrfs-progs: check: add repair support for orphan fst entry
  btrfs-progs: fsck-tests: add a new test case for deleting orphan fst
    entries

 common/clear-cache.c                          | 141 +++++++++++++++++-
 .../071-orphan-fst-entry/.lowmem_repairable   |   0
 .../orphan_fst_entries.img.xz                 | Bin 0 -> 1864 bytes
 3 files changed, 137 insertions(+), 4 deletions(-)
 create mode 100644 tests/fsck-tests/071-orphan-fst-entry/.lowmem_repairable
 create mode 100644 tests/fsck-tests/071-orphan-fst-entry/orphan_fst_entries.img.xz

--
2.52.0


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

end of thread, other threads:[~2026-02-06  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05 23:59 [PATCH 0/3] btrfs-progs: add repair support to delete orphan Qu Wenruo
2026-02-05 23:59 ` [PATCH 1/3] btrfs-progs: check: report all orphan free space info keys Qu Wenruo
2026-02-05 23:59 ` [PATCH 2/3] btrfs-progs: check: add repair support for orphan fst entry Qu Wenruo
2026-02-05 23:59 ` [PATCH 3/3] btrfs-progs: fsck-tests: add a new test case for deleting orphan fst entries Qu Wenruo

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