anatol/smart.go
smart.go exposes disk health information to Go programs without shelling out to smartctl. It opens block devices, reads identify data and S.M.A.R.T. attributes, and returns model, serial, temperature, power-on hours and power cycles, with device-specific structures for NVMe namespaces. Linux is the supported platform, macOS works partially, and the API mirrors what smartmontools reports.
Maintenance activity