mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 19:37:06 -05:00
Log both protocol and medium errors
This commit is contained in:
parent
58ca0b7057
commit
e99f43c8ca
6 changed files with 97 additions and 20 deletions
|
|
@ -433,12 +433,28 @@ int randomize(void* ptr, size_t size);
|
|||
#define SMART_TEMPERATURE_CELSIUS 194
|
||||
|
||||
#define SMART_FLAGS 256 /**< Flags returned by smartctl. */
|
||||
#define SMART_ERROR 257 /**< ATA Error count. */
|
||||
|
||||
/*
|
||||
* Counts command, transport, or controller-level errors reported by the device.
|
||||
* These reflect failed I/O operations not directly caused by media defects
|
||||
* (for example interface, firmware, or power-related errors).
|
||||
* This counter is cumulative and never resets to zero, even if the underlying
|
||||
* error condition is resolved.
|
||||
*/
|
||||
#define SMART_ERROR_PROTOCOL 257
|
||||
|
||||
/*
|
||||
* Counts media-level errors where data could not be reliably read or written.
|
||||
* These indicate actual storage surface or flash failures and may imply data loss.
|
||||
* This counter is cumulative and never resets to zero, even if the underlying
|
||||
* error condition is resolved.
|
||||
*/
|
||||
#define SMART_ERROR_MEDIUM 258
|
||||
|
||||
/**
|
||||
* SMART attributes count.
|
||||
*/
|
||||
#define SMART_COUNT 258
|
||||
#define SMART_COUNT 259
|
||||
|
||||
/**
|
||||
* Info attributes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue