From 0c486b09dfc686d24d8b6259424876efda1f4444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 28 Sep 2016 13:42:23 +0200 Subject: [PATCH] disks: use smartctl -H -A to only list SMART health and attributes, instead of "smartctl -a", which prints "all SMART information" --- PVE/Diskmanage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm index 5909d73..edc0ea8 100644 --- a/PVE/Diskmanage.pm +++ b/PVE/Diskmanage.pm @@ -78,7 +78,7 @@ sub get_smart_data { my $returncode = 0; eval { - $returncode = run_command([$SMARTCTL, '-a', '-f', 'brief', $disk], noerr => 1, outfunc => sub{ + $returncode = run_command([$SMARTCTL, '-H', '-A', '-f', 'brief', $disk], noerr => 1, outfunc => sub{ my ($line) = @_; if ($datastarted && $line =~ m/^[ \d]{2}\d/) {