Add support for custom smartctl info options using a [info: ...] tag

This commit is contained in:
Andrea Mazzoleni 2026-06-15 14:41:03 +02:00
parent 7c9473027c
commit b9d181d9cb
56 changed files with 631 additions and 221 deletions

View file

@ -1476,6 +1476,8 @@ PARITY 是奇偶校验名称之一:\`parity\`、\`2\-parity\`、\`3\-parity\`
对于 RAID 控制器,设备可能是固定的,
您可能不需要使用 \`%s\`。
.PP
您还可以使用 \`[info: ...]\` 标记指定自定义信息选项字符串,以替换默认的 \`\-a\` 选项。
.PP
请参阅 smartmontools 文档以了解可能的选项:
.PP
.RS 4
@ -1491,6 +1493,10 @@ https://www.smartmontools.org/wiki/Supported_USB\-Devices
例如:
.PP
.RS 4
smartctl d1 [info: \-H \-i \-c \-A] \-d sat %s
.PD 0
.PP
.PD
smartctl parity \-d sat %s
.PD 0
.PD
@ -1555,7 +1561,7 @@ exclude /tmp/
.PD 0
.PP
.PD
smartctl d1 \-d sat %s
smartctl d1 [info: \-H \-i \-c \-A] \-d sat %s
.PD 0
.PP
.PD
@ -1611,7 +1617,7 @@ exclude \\System Volume Information
.PD 0
.PP
.PD
smartctl d1 \-d sat %s
smartctl d1 [info: \-H \-i \-c \-A] \-d sat %s
.PD 0
.PP
.PD