Skip to content

btrfs-progs: add repair support to delete orphan

Qu Wenruo linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: check: report all orphan free space info keyscommon/clear-cache.c+8 -40 replies
2/3btrfs-progs: check: add repair support for orphan fst entrycommon/clear-cache.c+130 -10 replies
3/3btrfs-progs: fsck-tests: add a new test case for deleting orphan fst entriestests/fsck-tests/071-orphan-fst-entry/.lowmem_repairable tests/fsck-tests/071-orphan-fst-entry/orphan_fst_entries.img.xz+0 -00 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: add repair support to delete orphan

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