Skip to content

libprobe: report more information on bad blocks#281

Merged
AltraMayor merged 2 commits into
masterfrom
more_info
Jun 12, 2026
Merged

libprobe: report more information on bad blocks#281
AltraMayor merged 2 commits into
masterfrom
more_info

Conversation

@AltraMayor

Copy link
Copy Markdown
Owner

When a bad block is bs_overwritten, it's helpful to identify if it comes from the drive cache and which block overwrites it.

The parameters for the following f3probe test command come from the fake drive that inspired this pull request. See the output file test.log for details.

$ build/f3probe --debug-real-size=204517376s --debug-wrap=38 --debug-fake-size=524288000s --debug-cache-order=18 --verbose --destructive --time-ops test > test.log

Adding found_offset to the return of find_first_x_block() enables
callers to issue more informative logs.
When the bad block is bs_overwritten, it's helpful to identify
if it comes from the drive cache and which block overwrites it.
@AltraMayor AltraMayor merged commit 3ec5ee9 into master Jun 12, 2026
26 checks passed
@AltraMayor AltraMayor deleted the more_info branch June 12, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant