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!
Re-exports§
pub extern crate nix;
Structs§
- Disk
- Our ata smart disk
- Identify
Parsed Data
Enums§
Functions§
- get_
offline_ collection_ status_ as_ string - Helper fn. Transforms an SkSmartOfflineDataCollectionStatus into a String
- get_
smart_ status_ as_ string - Helper fn. Transforms an SkSmartSelfTestExecutionStatus into a String
- smart_
test_ polling_ minutes - 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
- smart_
test_ to_ string - Helper fn. Transforms a SkSmartSelfTest into a String