kpmcore/src/core
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
..
raid Port away from qAsConst. 2020-10-24 22:01:45 +01:00
CMakeLists.txt REUSE: SPDX style license headers for src/util. 2020-10-01 00:33:19 +01:00
copysource.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copysource.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copysourcedevice.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copysourcedevice.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copysourcefile.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copysourcefile.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copysourceshred.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copysourceshred.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copytarget.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copytarget.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copytargetbytearray.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copytargetbytearray.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copytargetdevice.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copytargetdevice.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copytargetfile.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
copytargetfile.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
device.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
device.h Add overrides to destructors. 2020-10-24 01:33:52 +01:00
device_p.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
devicescanner.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
devicescanner.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
diskdevice.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
diskdevice.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
fstab.cpp Use QStringLiteral. 2021-02-23 21:39:41 +00:00
fstab.h Fix parsing fstab mountpoints when they contain spaces or tabs. 2020-11-14 00:55:29 +00:00
lvmdevice.cpp Port away from qAsConst. 2020-10-24 22:01:45 +01:00
lvmdevice.h Add overrides to destructors. 2020-10-24 01:33:52 +01:00
operationrunner.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
operationrunner.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
operationstack.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
operationstack.h Add overrides to destructors. 2020-10-24 01:33:52 +01:00
partition.cpp Do not allow moving partitions without partition table. 2020-10-03 12:41:18 +01:00
partition.h Do not allow moving partitions without partition table. 2020-10-03 12:41:18 +01:00
partitionalignment.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
partitionalignment.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
partitionnode.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
partitionnode.h Add overrides to destructors. 2020-10-24 01:33:52 +01:00
partitionrole.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
partitionrole.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
partitiontable.cpp Port away from qAsConst. 2020-10-24 22:01:45 +01:00
partitiontable.h Add a new type of partition table "none". 2020-10-03 12:39:26 +01:00
smartattribute.cpp REUSE: SPDX style license headers for src/util. 2020-10-01 00:33:19 +01:00
smartattribute.h REUSE: SPDX style license headers for src/util. 2020-10-01 00:33:19 +01:00
smartattributeparseddata.cpp Port away from qAsConst. 2020-10-24 22:01:45 +01:00
smartattributeparseddata.h REUSE: SPDX style license headers for src/util. 2020-10-01 00:33:19 +01:00
smartdiskinformation.cpp Port away from qAsConst. 2020-10-24 22:01:45 +01:00
smartdiskinformation.h REUSE: SPDX style license headers for src/util. 2020-10-01 00:33:19 +01:00
smartparser.cpp Fix smartctl exit status success check 2021-03-17 16:03:32 +03:00
smartparser.h REUSE: SPDX style license headers for src/util. 2020-10-01 00:33:19 +01:00
smartstatus.cpp Port away from qAsConst. 2020-10-24 22:01:45 +01:00
smartstatus.h REUSE: SPDX style license headers for src/util. 2020-10-01 00:33:19 +01:00
volumemanagerdevice.cpp REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00
volumemanagerdevice.h REUSE: SPDX style license headers for src/util. 2020-10-01 00:33:19 +01:00
volumemanagerdevice_p.h REUSE: SPDX license headers for backend and core folders. 2020-09-20 20:33:16 +01:00