mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Log also the the SMART FLAGS returned by smartctl
This commit is contained in:
parent
827eb2117e
commit
8334ddc7c1
1 changed files with 2 additions and 0 deletions
|
|
@ -801,6 +801,8 @@ static void state_smart(unsigned n, tommy_list* low)
|
|||
msg_tag("attr:%s:error:%" PRIu64 "\n", devinfo->file, devinfo->smart[SMART_ERROR]);
|
||||
if (devinfo->smart[SMART_ROTATION_RATE] != SMART_UNASSIGNED)
|
||||
msg_tag("attr:%s:rotationrate:%" PRIu64 "\n", devinfo->file, devinfo->smart[SMART_ROTATION_RATE]);
|
||||
if (devinfo->smart[SMART_FLAGS] != SMART_UNASSIGNED)
|
||||
msg_tag("attr:%s:flags:%" PRIu64 ":%" PRIx64 "\n", devinfo->file, devinfo->smart[SMART_FLAGS], devinfo->smart[SMART_FLAGS]);
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue