anatol / smart.go

Pure-Go library to access drive's S.M.A.R.T. information
MIT License
171 stars 10 forks source link

Add support for MacOSX #2

Open anatol opened 2 years ago

anatol commented 2 years ago

smart.go has a partial support for MacOSX. https://github.com/anatol/smart.go/blob/main/nvme_darwin.cpp provides an example how nvme SMART information can be obtained at macosx. Other drives (ATA and SCSI) should be done similar way.