mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 20:36:38 -05:00
Detect more hardware errors
This commit is contained in:
parent
f5c07e07f5
commit
077cf5de01
6 changed files with 160 additions and 119 deletions
|
|
@ -70,6 +70,20 @@ unsigned char random_u8(void);
|
|||
*/
|
||||
uint64_t random_u64(void);
|
||||
|
||||
/****************************************************************************/
|
||||
/* error */
|
||||
|
||||
/**
|
||||
* Return if the error is at hardware level
|
||||
*/
|
||||
int is_hw(int err);
|
||||
|
||||
/**
|
||||
* Log errors with standard messages
|
||||
*/
|
||||
void log_fatal_errno(int err, const char* name);
|
||||
void log_error_errno(int err, const char* name);
|
||||
|
||||
/****************************************************************************/
|
||||
/* log */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue