mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Remove the check for FLAG_COMMAND
In some USB enclosures some SMART commands may fail but smartctl is still able to report data.
This commit is contained in:
parent
60f0c2494f
commit
b55d2eb3b8
1 changed files with 2 additions and 2 deletions
|
|
@ -395,7 +395,7 @@ static void state_smart(int verbose, unsigned n, tommy_list* low)
|
|||
printf("%8" PRIu64, devinfo->smart[SMART_ERROR]);
|
||||
else if (flag & (SMARTCTL_FLAG_ERROR | SMARTCTL_FLAG_ERROR_LOGGED))
|
||||
printf(" ERROR");
|
||||
else if (flag & (SMARTCTL_FLAG_UNSUPPORTED | SMARTCTL_FLAG_OPEN | SMARTCTL_FLAG_COMMAND))
|
||||
else if (flag & (SMARTCTL_FLAG_UNSUPPORTED | SMARTCTL_FLAG_OPEN))
|
||||
printf(" -");
|
||||
else if (devinfo->smart[SMART_ERROR] == 0)
|
||||
printf(" 0");
|
||||
|
|
@ -406,7 +406,7 @@ static void state_smart(int verbose, unsigned n, tommy_list* low)
|
|||
if (flag & (SMARTCTL_FLAG_FAIL | SMARTCTL_FLAG_PREFAIL | SMARTCTL_FLAG_PREFAIL_LOGGED))
|
||||
make_it_fail = 1;
|
||||
|
||||
if (flag & (SMARTCTL_FLAG_UNSUPPORTED | SMARTCTL_FLAG_OPEN | SMARTCTL_FLAG_COMMAND)) {
|
||||
if (flag & (SMARTCTL_FLAG_UNSUPPORTED | SMARTCTL_FLAG_OPEN)) {
|
||||
/* if error running smartctl, skip AFR estimation */
|
||||
afr = 0;
|
||||
printf(" -");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue