forked from martijnvanbrummelen/nwipe
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hidden sector detection for logical 4096 size
This fixes an issue where nwipe detects a discrepancy between the number of sectors reported by hdparm and nwipe's own HPA/DCO functions that were reporting the same values, using number of sectors based on 512 byte sectors but disagreed with the number of sectors generated from libata which was reporting the number of sectors based on 4096 byte sectors. This has been fixed by always calculating the number of sectors returned by libata using 512 bytes per sector so a direct comparison can be made to data from hdparm & nwipe's HPA/DCO functions.
- Loading branch information
1 parent
9edebde
commit dd7ffab
Showing
4 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* used by configure to dynamically assign those values | ||
* to documentation files. | ||
*/ | ||
const char* version_string = "0.35.5"; | ||
const char* version_string = "0.35.6"; | ||
const char* program_name = "nwipe"; | ||
const char* author_name = "Martijn van Brummelen"; | ||
const char* email_address = "[email protected]"; | ||
|
@@ -14,4 +14,4 @@ Modifications to original dwipe Copyright Andy Beverley <[email protected]>\n\ | |
This is free software; see the source for copying conditions.\n\ | ||
There is NO warranty; not even for MERCHANTABILITY or FITNESS\n\ | ||
FOR A PARTICULAR PURPOSE.\n"; | ||
const char* banner = "nwipe 0.35.5"; | ||
const char* banner = "nwipe 0.35.6"; |