project-machine / disko

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

make correct kname and path for createPV #56

Closed rchamarthy closed 4 years ago

rchamarthy commented 4 years ago

fixes the getKnameAndPathForBlockDevice to accept either a path or a name, find the device name and return the device name and path the way kernel sees it.

Signed-off-by: Ravi Chamarthy ravchama@cisco.com

codecov[bot] commented 4 years ago

Codecov Report

Merging #56 into master will decrease coverage by 0.03%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
- Coverage   56.98%   56.94%   -0.04%     
==========================================
  Files          15       15              
  Lines        1618     1619       +1     
==========================================
  Hits          922      922              
- Misses        629      630       +1     
  Partials       67       67              
Impacted Files Coverage Δ
linux/disk.go 48.09% <0.00%> (-0.19%) :arrow_down:

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 f9feb7a...c25cde8. Read the comment docs.