From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/2] btrfs-progs: check: add repair functionality for
Date: Mon, 6 Oct 2025 20:08:23 +1030 [thread overview]
Message-ID: <cover.1759743405.git.wqu@suse.com> (raw)
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
next reply other threads:[~2025-10-06 9:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-06 9:38 Qu Wenruo [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1759743405.git.wqu@suse.com \
--to=wqu@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.