disks: use smartctl -H -A

to only list SMART health and attributes, instead of
"smartctl -a", which prints "all SMART information"
This commit is contained in:
Fabian Grünbichler
2016-09-28 13:42:23 +02:00
committed by Dietmar Maurer
parent acd3d91649
commit 0c486b09df

View File

@ -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/) {