mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 06:10:13 -05:00
Add smartctl_scan into support module
This commit is contained in:
parent
ebabaacfe9
commit
74026ddca8
3 changed files with 43 additions and 27 deletions
|
|
@ -126,9 +126,15 @@ void malloc_fail(size_t size);
|
|||
|
||||
/**
|
||||
* Reads smartctl attributes from a stream.
|
||||
* Returns -1 on error.
|
||||
* Returns 0 on success.
|
||||
*/
|
||||
int smartctl_attribute(FILE* f, uint64_t* smart, char* serial);
|
||||
|
||||
/**
|
||||
* Reads smartctl --scan from a stream.
|
||||
* Returns 0 on success.
|
||||
*/
|
||||
int smartctl_scan(FILE* f, tommy_list* list);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue