kpmcore/src
Yaroslav Sidlovsky 8746ef72fd Fix smartctl exit status success check
According to the smartctl man page:
```
EXIT STATUS
The  exit  statuses of smartctl are defined by a bitmask.  If all is well with the disk, the exit status (return value) of smartctl is 0 (all bits turned off).  If a problem occurs, or an error, potential error, or fault is detected, then a non-zero status is
returned.  In this case, the eight different bits in the exit status have the following meanings for ATA disks; some of these values may also be returned for SCSI disks.

Bit 0: Command line did not parse.

Bit 1: Device open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode (see '-n' option above).

Bit 2: Some SMART or other ATA command to the disk failed, or there was a checksum error in a SMART data structure (see '-b' option above).

Bit 3: SMART status check returned "DISK FAILING".

Bit 4: We found prefail Attributes <= threshold.

Bit 5: SMART status check returned "DISK OK" but we found that some (usage or prefail) Attributes have been <= threshold at some time in the past.

Bit 6: The device error log contains records of errors.

Bit 7: The device self-test log contains records of errors.  [ATA only] Failed self-tests outdated by a newer successful extended self-test are ignored.
```

BUG: 429028
2021-03-17 16:03:32 +03:00
..
backend Add overrides to destructors. 2020-10-24 01:33:52 +01:00
core Fix smartctl exit status success check 2021-03-17 16:03:32 +03:00
fs lvm without arguments has returncode 3 2021-02-27 12:00:00 +00:00
gui Add overrides to destructors. 2020-10-24 01:33:52 +01:00
jobs Add overrides to destructors. 2020-10-24 01:33:52 +01:00
ops Rename d pointer to d_ptr to disambiguate from Device d. 2020-11-12 01:04:47 +00:00
plugins Wipe existing signatures when creating partition table 2021-01-15 09:53:20 +01:00
util GIT_SILENT made messages (after extraction) 2021-03-03 03:33:29 +01:00
CMakeLists.txt Clean up include dirs 2020-11-16 20:56:57 +00:00
Messages.sh kpmcore does not ship .ui or .rc files. 2020-10-28 11:12:27 +00:00
XmlMessages.sh Use XmlMessages.sh for translations of polkit policy files. 2020-10-25 23:45:28 +00:00