Crate libatasmart

source ·
Expand description

A library to interface with libatasmart-sys. For more information about libatasmart-sys see libatasmart-sys This library is useful for gathering ata smart information from your hard drives concerning their remaining lifetime. The underlying libatasmart doesn’t expose every possible metric like smartmontools but it does expose a few important ones like bad sector count and overall status. This also has the advantage of avoiding CLI calls and scraping the text output which makes it more reliable and also a lot more performant!


pub extern crate nix;


Our ata smart disk



Helper fn. Transforms an SkSmartOfflineDataCollectionStatus into a String
Helper fn. Transforms an SkSmartSelfTestExecutionStatus into a String
Helper fn. I believe this function returns how many minutes it takes to run a particular type of smart test but it’s not entirely clear and the original source code doesn’t have a comment
Helper fn. Transforms a SkSmartSelfTest into a String