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

Allow Last Pass Verify to work without requiring final blanking (zero) pass. #326

Conversation

PartialVolume
Copy link
Collaborator

@PartialVolume PartialVolume commented Jun 4, 2021

  1. Allows zero fill to be verified when blanking off. Prior to this if you wanted to verify a zero pass, blanking had to be on. This meant a zero pass, then a blanking pass then a verify, effectively two zero passes and a verify. This is now fixed so you can now do a zero pass with verification without a blanking pass. This knocks a third off the wipe time of a zero fill with verification !. This also means all other methods can have either all their passes or just the last pass verified, whether static or random, without blanking being enabled. Optionally a blanking pass with or without verification can be selected except for the Ops2 method which requires a mandatory random pass.

  2. OPS2 method requires the last pass to be random, the GUI now disables the use of the blanking option for this method and displays a warning message that a final blanking pass is not allowed for OPS2. It never did a final blanking pass anyway, even if it was selected, but this makes it clearer in the GUI that a blanking pass is not an option.

  3. The calculate_round_size() function was improved by reducing some duplicated code and bringing the full calculation into this function. Corrected OPS2 and HMG IS5 Enhanced 'additional calculations' due to verification being allowed without a final blanking pass.

  4. On completion of each pass or verification the total number of bytes written or read for each pass or verification is logged.

Verified correct round size and thus correct percentage completion values for all 84 possible combinations of wipe.

zerofill OPS-II DoD-S DoD-F GutM PRNG V.Blank IS5
Verify Last Pass, Blanking On, 1R 100% N/A 100% 100% 100% 100% N/A 100%
Verify Last Pass, Blanking On, 2R 100% N/A 100% 100% 100% 100% N/A 100%
Verify Last Pass, Blanking Off, 1R 100% 100% 100% 100% 100% 100% 100% 100%
Verify Last Pass, Blanking Off, 2R 100% 100% 100% 100% 100% 100% 100% 100%
Verify Off, Blanking On, 1R 100% N/A 100% 100% 100% 100% N/A 100%
Verify Off, Blanking On, 2R 100% N/A 100% 100% 100% 100% N/A 100%
Verify Off, Blanking Off, 1R 100% 100% 100% 100% 100% 100% 100% 100%
Verify Off, Blanking Off, 2R 100% 100% 100% 100% 100% 100% 100% 100%
Verify All, Blanking On, 1R 100% N/A 100% 100% 100% 100% N/A 100%
Verify All, Blanking On, 2R 100% N/A 100% 100% 100% 100% N/A 100%
Verify All, Blanking Off, 1R 100% 100% 100% 100% 100% 100% 100% 100%
Verify All, Blanking Off, 2R 100% 100% 100% 100% 100% 100% 100% 100%

1. Allows zero fill to be verified when blanking off.
Prior to this if you wanted to verify a zero pass,
blanking had to be on. This meant a zero pass, then a
blanking pass then a verify, effectively two zero passes
and a verify. This is now fixed so you can now do a zero
pass with verification without a blanking pass. This knocks
a third off the wipe time of a zero fill with verification.

This also means all other methods can have either all their
passes or just the last pass verified without blanking being
enabled.

2. OPS2 method requires the last pass to be random, the GUI
now disables the use of the blanking option for this message
and displays a warning message that a final blanking pass is
not allowed for OPS2. It never did a final blanking pass
anyway, even if it was selected, but this makes it clearer in
the GUI.

3. The caculate_round_size() function was improved by reducing
some duplicated code and bring the full calculation into this function.

4. On completion of each pass or verification the total number of
bytes written or read for each pass or verification is logged.
@PartialVolume PartialVolume merged commit 5c3eed8 into martijnvanbrummelen:master Jun 4, 2021
@PartialVolume PartialVolume deleted the Enable_verification_on_zero_pass_without_additional_blanking_pass branch June 4, 2021 09:36
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