Log both protocol and medium errors

This commit is contained in:
Andrea Mazzoleni 2026-01-19 14:33:55 +01:00
parent 58ca0b7057
commit e99f43c8ca
6 changed files with 97 additions and 20 deletions

View file

@ -1611,8 +1611,27 @@ The disk size in bytes (uint).
.PD
.RE
.TP
.B attr:<device_file>:<disk_name>[/<split_index>]:error:<error_count>
Logs the total error count.
.B attr:<device_file>:<disk_name>[/<split_index>]:error_protocol:<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.
.RS 4
.PD 0
.HP 4
.I <error_count>
The total error count (uint).
.PD
.RE
.TP
.B attr:<device_file>:<disk_name>[/<split_index>]:error_medium:<error_count>
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.
.RS 4
.PD 0
.HP 4

View file

@ -1018,8 +1018,22 @@ Command Smart And Probe Tags
<size_bytes> - The disk size in bytes (uint).
=attr:<device_file>:<disk_name>[/<split_index>]:error:<error_count>
Logs the total error count.
=attr:<device_file>:<disk_name>[/<split_index>]:error_protocol:<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.
<error_count> - The total error count (uint).
=attr:<device_file>:<disk_name>[/<split_index>]:error_medium:<error_count>
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.
<error_count> - The total error count (uint).

View file

@ -1064,8 +1064,22 @@ Tags logging specific disk identification and attribute values.
<size_bytes> - The disk size in bytes (uint).
attr:<device_file>:<disk_name>[/<split_index>]:error:<error_count>
Logs the total error count.
attr:<device_file>:<disk_name>[/<split_index>]:error_protocol:<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.
<error_count> - The total error count (uint).
attr:<device_file>:<disk_name>[/<split_index>]:error_medium:<error_count>
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.
<error_count> - The total error count (uint).