mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 16:06:30 -05:00
Share smartctl support between different platforms
This commit is contained in:
parent
467bf0256b
commit
f706da1cc6
4 changed files with 88 additions and 116 deletions
|
|
@ -121,5 +121,14 @@ char* strdup_nofail(const char* str);
|
|||
*/
|
||||
void malloc_fail(size_t size);
|
||||
|
||||
/****************************************************************************/
|
||||
/* smartctl */
|
||||
|
||||
/**
|
||||
* Reads smartctl attributes from a stream.
|
||||
* Returns -1 on error.
|
||||
*/
|
||||
int smartctl_attribute(FILE* f, uint64_t* smart, char* serial);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue