On 07/12/17 17:40, Andreas Klauer wrote: > On Thu, Dec 07, 2017 at 02:58:32PM +0100, Andreas Klauer wrote: >> Perhaps it's an intermittent error specific to your smartctl version? > > Looking at the source code, it seems to be a case of: > > sct supported, erc unsupported - exit 4 (fail) That's fine - fail is detected, kernel timeout is set to 180 > sct unsupported as a whole - exit 0 (success) WHOOPS. Setting erc fails, so the command reports success! > > So some drives will give the wrong exit code for this command. > > Should probably be reported as a bug to smartmontools. Sounds about right. Cheers, Wol -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html