All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/2] btrfs: scrub: improving read-only and write failure report
Date: Sun, 29 Nov 2026 09:16:05 +1030	[thread overview]
Message-ID: <cover.1795905947.git.wqu@suse.com> (raw)

The first patch is a bug that scrub_stripe::write_error_bitmap is never
cleared even we have moved to a new stripe.

Thankfully the bug has limited affect.

The second patch is to report read-only and failed write as
uncorrectable errors, according to the existing comment in the UABI
header.

This is not the best solution, but that's what we can do before we
expand btrfs_scrub_progress structure.

Qu Wenruo (2):
  btrfs: scrub: reset write_error_bitmap for a new stripe
  btrfs: scrub: report read-only and failed write correctly

 fs/btrfs/scrub.c | 61 +++++++++++++++++++++++++++++++++++-------------
 1 file changed, 45 insertions(+), 16 deletions(-)

-- 
2.56.1


             reply	other threads:[~2026-11-28 22:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 22:46 Qu Wenruo [this message]
2026-11-28 22:46 ` [PATCH 1/2] btrfs: scrub: reset write_error_bitmap for a new stripe Qu Wenruo
2026-11-28 22:46 ` [PATCH 2/2] btrfs: scrub: report read-only and failed write correctly 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.1795905947.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.