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:
Andrea Mazzoleni 2015-02-08 15:24:39 +01:00
parent 60f0c2494f
commit b55d2eb3b8

View file

@ -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(" -");