fairdk / lcrs-embedded

LCRS embedded components - "slave" + embedded linux kernel
https://lcrs.fairdanmark.dk/
GNU General Public License v3.0
1 stars 3 forks source link

Fetch S.M.A.R.T. data with `smartctl` info during scan #3

Open benjaoming opened 7 years ago

benjaoming commented 7 years ago

system.smartctl.smartinfo collects information from the smartctl command.

  1. Check if SMART is available and enabled
  2. If not enabled, enable it and re-check if it's enabled. Fail in case it can't be enabled
  3. Add to ScanResult instance:
    1. Duration of short self test
    2. If ATA Secure Erase is available