Get SMART attributes also in probe, but only if the disk is already spinning

This commit is contained in:
Andrea Mazzoleni 2025-12-25 21:03:46 +01:00
parent 986d7464b4
commit fca525e5c6
4 changed files with 44 additions and 22 deletions

View file

@ -1435,8 +1435,12 @@ Logs the final exit status indicating that the current hash
algorithm is already the \`best hash\` for the platform, and thus
a rehash is not required. This causes the program to exit with
a fatal error.
.SH COMMAND SMART TAGS
This section describes the tags output with the \`smart\` command.
.SH COMMAND SMART AND PROBE TAGS
This section describes the tags output by the \`smart\` and \`probe\`
commands. The main difference between the two is that \`probe\` doesn\'t
spin up the disk, so it won\'t be able to get all attributes if the
disk is spun down. The \`smart\` command, instead, will always get all
attributes, but with the risk of spinning up all disks.
.PP
Note that a \`<disk_name>\` may be associated with more \`<device_file>\`,
in case the logical disk uses more physical disks. In such a case,

View file

@ -917,8 +917,12 @@ Command Rehash Tags
a rehash is not required. This causes the program to exit with
a fatal error.
Command Smart Tags
This section describes the tags output with the `smart` command.
Command Smart And Probe Tags
This section describes the tags output by the `smart` and `probe`
commands. The main difference between the two is that `probe` doesn't
spin up the disk, so it won't be able to get all attributes if the
disk is spun down. The `smart` command, instead, will always get all
attributes, but with the risk of spinning up all disks.
Note that a `<disk_name>` may be associated with more `<device_file>`,
in case the logical disk uses more physical disks. In such a case,

View file

@ -957,10 +957,14 @@ These tags provide a final summary of the rehash scheduling process.
a fatal error.
14 COMMAND SMART TAGS
=====================
14 COMMAND SMART AND PROBE TAGS
===============================
This section describes the tags output with the `smart` command.
This section describes the tags output by the `smart` and `probe`
commands. The main difference between the two is that `probe` doesn't
spin up the disk, so it won't be able to get all attributes if the
disk is spun down. The `smart` command, instead, will always get all
attributes, but with the risk of spinning up all disks.
Note that a `<disk_name>` may be associated with more `<device_file>`,
in case the logical disk uses more physical disks. In such a case,