btrfs-progs: add repair support to delete orphan
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs-progs: check: report all orphan free space info keyscommon/ | +8 | 0 replies | |
| 2/3 | btrfs-progs: check: add repair support for orphan fst entrycommon/ | +130 | 0 replies | |
| 3/3 | btrfs-progs: fsck-tests: add a new test case for deleting orphan fst entriestests/ tests/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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