linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: check: add repair functionality for
@ 2025-10-06  9:38 Qu Wenruo
  2025-10-06  9:38 ` [PATCH 1/2] btrfs-progs: check: add repair functionality for orphan dev extents Qu Wenruo
  2025-10-06  9:38 ` [PATCH 2/2] btrfs-progs: fsck-tests: a new test case with orphan dev extent Qu Wenruo
  0 siblings, 2 replies; 3+ messages in thread
From: Qu Wenruo @ 2025-10-06  9:38 UTC (permalink / raw)
  To: linux-btrfs

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


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

end of thread, other threads:[~2025-10-06  9:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06  9:38 [PATCH 0/2] btrfs-progs: check: add repair functionality for Qu Wenruo
2025-10-06  9:38 ` [PATCH 1/2] btrfs-progs: check: add repair functionality for orphan dev extents Qu Wenruo
2025-10-06  9:38 ` [PATCH 2/2] btrfs-progs: fsck-tests: a new test case with orphan dev extent Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).