project-machine / disko

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

cli: add megaraid disk-summary #36

Closed smoser closed 4 years ago

smoser commented 4 years ago

megaraid disk-summary shows information about virtual disks and disks that are not in a disk group.

So virtual disks show up like:

$ ./demo megaraid disk-summary
Path     | Name    | Type | State |
/dev/sda | RAID0_2 | SSD  | Optl  |
/dev/sdb | RAID0_3 | HDD  | Optl  |

JBOD or "UBUnsp" (bad) disks show up like:

$ ./demo megaraid disk-summary
Path     | Name      | Type | State  |
         | diskid-13 | HDD  | UBUnsp |
/dev/sda | diskid-8  | HDD  | JBOD   |
/dev/sdb | diskid-10 | HDD  | JBOD   |
codecov[bot] commented 4 years ago

Codecov Report

Merging #36 into master will not change coverage by %. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #36   +/-   ##
=======================================
  Coverage   61.49%   61.49%           
=======================================
  Files          14       14           
  Lines        1444     1444           
=======================================
  Hits          888      888           
  Misses        495      495           
  Partials       61       61           

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 b8b9b01...0cc8d62. Read the comment docs.