Add SMART self-test results to zpool status -c
commit3e9c9d8a89c8665fc585db88fa911ce60533e79f
authorTony Hutter <hutter2@llnl.gov>
Tue, 27 Feb 2018 17:31:27 +0000 (27 09:31 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 27 Feb 2018 17:31:27 +0000 (27 09:31 -0800)
tree9ecb9db257169120dca759ef600f8a53153e7cc0
parent095495e0081c16a18641fc60e7c9872123a4f83e
Add SMART self-test results to zpool status -c

Add in SMART self-test results to zpool status|iostat -c.  This
works for both SAS and SATA drives.

Also, add plumbing to allow the 'smart' script to take smartctl
output from a directory of output text files instead of running
it against the vdevs.

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #7178
cmd/zpool/Makefile.am
cmd/zpool/zpool.d/smart
cmd/zpool/zpool.d/smart_test [new symlink]
cmd/zpool/zpool.d/test_ended [new symlink]
cmd/zpool/zpool.d/test_progress [new symlink]
cmd/zpool/zpool.d/test_status [new symlink]
cmd/zpool/zpool.d/test_type [new symlink]