-
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.
Add support for hdparm based drive wipe (#167)
### What does this PR do Similar to what we're doing for NVME devices, this command supports Sanitizing and Erasing and decides which function and parameters to use depending on the capabilities reported by the drive. Sanitize is preferred over erase. Cryptographic scramble is preferred of block erase within Sanitize. I reused the nvme sanitize/erase type since utils is all one big package anyway to avoid confusion. If we ever split each utility into its own package (as I want) then we'll just create a more specific type for hdparm.
- Loading branch information
Showing
3 changed files
with
212 additions
and
8 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