Add support for specifying case-insensitive SMART attribute names in the smartignore option

This commit is contained in:
Andrea Mazzoleni 2026-06-25 22:52:53 +02:00
parent a6aa723b08
commit 82fdb5663d
51 changed files with 624 additions and 231 deletions

View file

@ -1510,18 +1510,27 @@ PARITY 是奇偶校验名称之一:\`parity\`、\`2\-parity\`、\`3\-parity\`
\`4\-parity\`、\`5\-parity\`、\`6\-parity\` 或 \`z\-parity\`。
特殊值 * 可用于在所有磁盘上忽略该属性。
.PP
例如,要在所有磁盘上忽略 \`Current Pending Sector Count\` 属性:
可以指定多个属性,用空格分隔。
每个属性可以指定为 1 到 255 之间的数字,或者不区分大小写的名称
(例如 \`Current_Pending_Sector\`)。
.PP
例如,要在所有磁盘上通过编号或名称忽略 \`Current Pending Sector Count\` 和
\`Reallocated Sectors Count\` 属性:
.PP
.RS 4
smartignore * 197
smartignore * 197 5
.PD 0
.PP
.PD
smartignore * Current_Pending_Sector Reallocated_Sector_Ct
.PD 0
.PD
.RE
.PP
要仅在第一个奇偶校验磁盘上忽略它:
要仅在第一个奇偶校验磁盘上忽略它们:
.PP
.RS 4
smartignore parity 197
smartignore parity 197 5
.PD 0
.PD
.RE