getBlkSize gets size in 512-byte sectors (BLKGETSIZE64 / 512). REF: https://man7.org/linux/man-pages/man8/blockdev.8.html
(device string)
| 100 | // |
| 101 | // REF: https://man7.org/linux/man-pages/man8/blockdev.8.html |
| 102 | func getBlkSize(device string) (int64, error) { |
| 103 | size, err := getBlkSize64(device) |
| 104 | return size / 512, err |
| 105 | } |
no test coverage detected