Skip to content

btrfs-progs: check: add repair functionality for

Qu Wenruo linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: check: add repair functionality for orphan dev extentscheck/main.c check/mode-lowmem.c check/repair.c +1 more+90 -20 replies
2/2btrfs-progs: fsck-tests: a new test case with orphan dev extenttests/fsck-tests/068-orphan-dev-extent/.lowmem_repairable tests/fsck-tests/068-orphan-dev-extent/default.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/2] btrfs-progs: check: add repair functionality for

Currently any orphan device extents will cause kernels to reject the mount.

But on the other hand, btrfs check is unable to repair such problem, so end users may fall into a situation where they are unable to mount the fs.

Add the repair functionality to btrfs check, for both original lowmem modes, and add a new test case for it.

Qu Wenruo (2):
btrfs-progs: check: add repair functionality for orphan dev extents
btrfs-progs: fsck-tests: a new test case with orphan dev extent

 check/main.c                                  |   6 +-
 check/mode-lowmem.c                           |   7 +-
 check/repair.c                                |  78 ++++++++++++++++++
 check/repair.h                                |   1 +
 .../068-orphan-dev-extent/.lowmem_repairable  |   0
 .../068-orphan-dev-extent/default.img.xz      | Bin 0 -> 1784 bytes
 6 files changed, 90 insertions(+), 2 deletions(-)
 create mode 100644 tests/fsck-tests/068-orphan-dev-extent/.lowmem_repairable
 create mode 100644 tests/fsck-tests/068-orphan-dev-extent/default.img.xz

--
2.50.1