]> git.proxmox.com Git - pve-storage.git/commitdiff
disks: use smartctl -H -A
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 28 Sep 2016 11:42:23 +0000 (13:42 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Sep 2016 06:41:31 +0000 (08:41 +0200)
to only list SMART health and attributes, instead of
"smartctl -a", which prints "all SMART information"

PVE/Diskmanage.pm

index 5909d7332407a520d91bfd279cdb01e2e79fe74c..edc0ea862afeb0259f3ccfde57774af57e6fc862 100644 (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/) {