project-machine / disko

Disk Operations API in Go
Apache License 2.0
13 stars 9 forks source link

Make Wipe() wipe partitions, Add demo disk wipe. #90

Closed smoser closed 4 years ago

smoser commented 4 years ago

Previously, system.Wipe() would only wipe the first and last MiB of the disk. Now, it will also wipe the first and last MiB of any partitions on the disk.

Also, add 'demo disk wipe' subcommand that calls this.

codecov[bot] commented 4 years ago

Codecov Report

Merging #90 into master will increase coverage by 0.13%. The diff coverage is 58.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   66.23%   66.37%   +0.13%     
==========================================
  Files          16       16              
  Lines        1937     1945       +8     
==========================================
+ Hits         1283     1291       +8     
+ Misses        487      484       -3     
- Partials      167      170       +3     
Impacted Files Coverage Δ
linux/system.go 37.83% <0.00%> (ø)
linux/disk.go 57.36% <63.63%> (+0.76%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a6d85b9...8b51eb3. Read the comment docs.