From ec2926c2e4272d5b6f56566fe0fde4da63b8796d Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 24 Nov 2022 11:17:09 +0100 Subject: [PATCH] disk: smartctl: ignore bit 2 of exitcode under some conditions, the smartctl exitcode sets bit 2, even if the smartctl call succeeded, but has e.g. some warnings derived from the attributes we do the same in pve, but it is only the first step in fixing #4353, since we probably should parse the smartcl output better to include such warnings Signed-off-by: Dominik Csapak --- src/tools/disks/smart.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/disks/smart.rs b/src/tools/disks/smart.rs index 180ddfe9..a99404dc 100644 --- a/src/tools/disks/smart.rs +++ b/src/tools/disks/smart.rs @@ -94,7 +94,7 @@ pub fn get_smart_data(disk: &super::Disk, health_only: bool) -> Result