Download this file
| 1 | //go:build windows |
| 2 | |
| 3 | package host |
| 4 | |
| 5 | import "errors" |
| 6 | |
| 7 | // diskBytes has no Windows implementation: this package's disk readings |
| 8 | // describe a CARLOS box's /data volume, and boxes are Linux. Windows builds |
| 9 | // exist so the carlos CLI compiles for workstation use, where these probes |
| 10 | // never run. The error path is the one both callers already take when |
| 11 | // statfs fails, so nothing new happens here — readDiskFrac and |
| 12 | // readDiskFreeBytes report "unknown" rather than a wrong number. |
| 13 | func diskBytes(dir string) (total, avail uint64, err error) { |
| 14 | return 0, 0, errors.New("disk readings are box-side (linux) only") |
| 15 | } |
| 16 | |