linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: scrub: small enhancement related to super block errors
@ 2022-08-02  6:53 Qu Wenruo
  2022-08-02  6:53 ` [PATCH 1/2] btrfs: scrub: properly report super block errors in dmesg Qu Wenruo
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Qu Wenruo @ 2022-08-02  6:53 UTC (permalink / raw)
  To: linux-btrfs

Recently during a new test case to verify btrfs can handle a fully
corrupted disk (but with a good primary super block), I found that scrub
doesn't really try to repair super blocks.

And scrub doesn't report super block errors in dmesg either.

So this small patchset is to fix the problems by:

- Add explicit error messages for super block errors
- Try to fix super block errors by committing a transaction

Qu Wenruo (2):
  btrfs: scrub: properly report super block errors in dmesg
  btrfs: scrub: try to fix super block errors

 fs/btrfs/scrub.c | 71 ++++++++++++++++++++++++++++++++++--------------
 1 file changed, 50 insertions(+), 21 deletions(-)

-- 
2.37.0


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

end of thread, other threads:[~2022-08-06  6:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-02  6:53 [PATCH 0/2] btrfs: scrub: small enhancement related to super block errors Qu Wenruo
2022-08-02  6:53 ` [PATCH 1/2] btrfs: scrub: properly report super block errors in dmesg Qu Wenruo
2022-08-02  6:53 ` [PATCH 2/2] btrfs: scrub: try to fix super block errors Qu Wenruo
2022-08-03 12:55   ` David Sterba
2022-08-03 21:49     ` Qu Wenruo
2022-08-04 13:06       ` David Sterba
2022-08-06  6:01         ` Qu Wenruo
2022-08-06  6:30           ` Qu Wenruo
2022-08-02 14:22 ` [PATCH 0/2] btrfs: scrub: small enhancement related to " David Sterba
2022-08-02 22:18   ` Qu Wenruo
2022-08-03 12:50     ` David Sterba
2022-08-04 14:05 ` David Sterba

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).