Adds a new smartignore option to ignore specific SMART attributes
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL / Analyze (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2025-09-15 16:56:09 +02:00
parent 4c504ab325
commit 8cef686d26
15 changed files with 211 additions and 39 deletions

View file

@ -1504,6 +1504,32 @@ https://www.smartmontools.org/wiki/Supported_USB\-Devices
.PP
.PD
.RE
.SS smartignore DISK/PARITY ATTR [ATTR...]
Ignores the specified SMART attribute when computing the probability
of disk failure. This option is useful if a disk reports unusual or
misleading values for a particular attribute.
.PP
DISK is the same disk name specified in the \[dq]disk\[dq] option.
PARITY is one of the parity name as \[dq]parity,(1,2,3,4,5,6,z)\-parity\[dq].
The special value * can be used to ignore the attribute on all disks.
.PP
For example, to ignore the \[dq]Load_Cycle_Count\[dq] attribute on all disks:
.PP
.RS 4
smartignore * 193
.PD 0
.PP
.PD
.RE
.PP
To ignore it only on the first parity disk:
.PP
.RS 4
smartignore parity 193
.PD 0
.PP
.PD
.RE
.SS Examples
An example of a typical configuration for Unix is:
.PP