Skip to content

btrfs: scrub: small enhancement related to super block errors

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: scrub: properly report super block errors in dmesgfs/btrfs/scrub.c+13 -210 replies
2/2btrfs: scrub: try to fix super block errorsfs/btrfs/scrub.c+37 -05 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: scrub: small enhancement related to super block errors

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(-)
Signature · 1 line
2.37.0