Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

badblocks: Skip known bad blocks correctly in non-destructive mode and write mode #141

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wangym5106
Copy link

@wangym5106 wangym5106 commented Apr 18, 2023

Currently

  • In non-destructive mode testing with multiple pattern, only first pattern skips known bad blocks, the following pattern will not skip.
  • In write mode, the known bad blocks from input files and previous test pass will not be skipped
  • After skipped known bad blocks, the performance decreased until find a new bad block

This PR will

  • Make multi-pattern non-destructive test skip known bad blocks from input file and previous test correctly
  • Implement the known bad block logic in write mode test
  • Fix the performance issue with known bad blocks

Fixing the issue that when testing in non-destructive mode with multiple
test pattern, only first pattern skips known bad blocks.

Signed-off-by: Yiming Wang <[email protected]>
@wangym5106 wangym5106 changed the title badblocks: Skip known bad blocks correctly in non-destructive test badblocks: Skip known bad blocks correctly in non-destructive mode and write mode Apr 18, 2023
Fix performance issue that blocks in a try won't recover after known bad blocks

Signed-off-by: Yiming Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant