kpmcore/src/core
Valerii Malov 9565ef61ab Add support for smartmontools 7.0 user_capacity json output
Summary:
smartmontools 7.0 reports user capacity as an object that contains bytes and blocks value, instead of being an int that just contains bytes
This should fix incorrect calculation of bad blocks threshold and incorrect display of "Overall" status

Test Plan:
run partitionmanager on a system that has smartmontools 7, open smart status
overall status should be reported correctly

Reviewers: stikonas

Reviewed By: stikonas

Differential Revision: https://phabricator.kde.org/D21311
2019-05-23 17:43:44 +03:00
..
raid Fixing device scanning process 2019-04-03 15:37:47 -06:00
CMakeLists.txt Allow copyblocks to be used together with small QByteArrays. 2018-10-29 00:02:12 +00:00
copysource.cpp Move kpmcore library into its own repository. 2015-06-04 01:29:22 +01:00
copysource.h Do not install some private smart include files. 2018-04-02 13:13:16 +01:00
copysourcedevice.cpp Use std::unique_ptr for CoreBackendDevices 2018-03-31 14:44:40 +01:00
copysourcedevice.h Use std::unique_ptr for CoreBackendDevices 2018-03-31 14:44:40 +01:00
copysourcefile.cpp Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copysourcefile.h Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copysourceshred.cpp Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copysourceshred.h Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copytarget.cpp Move kpmcore library into its own repository. 2015-06-04 01:29:22 +01:00
copytarget.h Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copytargetbytearray.cpp Allow copyblocks to be used together with small QByteArrays. 2018-10-29 00:02:12 +00:00
copytargetbytearray.h Allow copyblocks to be used together with small QByteArrays. 2018-10-29 00:02:12 +00:00
copytargetdevice.cpp Use std::unique_ptr for CoreBackendDevices 2018-03-31 14:44:40 +01:00
copytargetdevice.h Use std::unique_ptr for CoreBackendDevices 2018-03-31 14:44:40 +01:00
copytargetfile.cpp Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
copytargetfile.h Remove backend readData/writeData functions. 2018-02-06 16:48:02 +00:00
device.cpp d-pointerize Operation class. 2018-04-11 03:52:46 +03:00
device.h Changing HardwareRAID_Device to FakeRAID_Device. 2018-07-11 11:57:56 -03:00
device_p.h d-pointerize LvmDevice class. 2018-04-09 02:40:24 +01:00
devicescanner.cpp Add scanDevices function that uses flags instead of bools. 2019-02-09 15:40:06 +00:00
devicescanner.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
diskdevice.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
diskdevice.h Reuse the d-pointer of the base class Device for the child class DiskDevice. 2018-04-09 00:35:06 +01:00
fstab.cpp Remove "mv" command from allowed external command list 2019-01-12 23:18:01 +00:00
fstab.h Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
lvmdevice.cpp Switch to scoped name PartitionTable::Flag:: 2019-02-09 18:04:44 +00:00
lvmdevice.h Fixing device scanning process 2019-04-03 15:37:47 -06:00
operationrunner.cpp Revert "Try to workaround systemd automounting." 2018-04-13 01:06:32 +03:00
operationrunner.h Mark override members as such 2019-02-16 00:17:48 +01:00
operationstack.cpp Switch Device::Type enum to enum class. 2018-04-09 02:57:45 +01:00
operationstack.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
partition.cpp Add a shorter Partition::State enum names. 2018-04-09 03:46:05 +01:00
partition.h Switch to scoped name PartitionTable::Flag:: 2019-02-09 18:04:44 +00:00
partitionalignment.cpp Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
partitionalignment.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
partitionnode.cpp Simplify if-return code a bit. 2016-08-31 20:14:21 +01:00
partitionnode.h Rename KPMcore include guards. 2017-09-10 20:12:52 +01:00
partitionrole.cpp Allow accessing untranslated partition roles. 2017-09-15 13:09:01 +01:00
partitionrole.h Allow accessing untranslated partition roles. 2017-09-15 13:09:01 +01:00
partitiontable.cpp Add a function to convert QStringList of flag names to flags. 2019-02-28 00:15:26 +00:00
partitiontable.h Add a function to convert QStringList of flag names to flags. 2019-02-28 00:15:26 +00:00
smartattribute.cpp S.M.A.R.T. attribute 178 is same as 179 2018-12-19 23:18:49 +00:00
smartattribute.h Convert more enums to scoped enums. 2018-04-09 15:14:34 +01:00
smartattributeparseddata.cpp Use strongly typed enum for SmartAttributeUnit. 2018-04-05 23:06:52 +01:00
smartattributeparseddata.h Use strongly typed enum for SmartAttributeUnit. 2018-04-05 23:06:52 +01:00
smartdiskinformation.cpp Fix more memory leaks in SmartDiskInformation. 2018-04-09 16:16:02 +01:00
smartdiskinformation.h Reuse SmartStatus::SelfTestStatus enum. 2018-04-09 15:37:46 +01:00
smartparser.cpp Add support for smartmontools 7.0 user_capacity json output 2019-05-23 17:43:44 +03:00
smartparser.h Fix a memory leak in SmartParser. 2018-04-09 16:07:44 +01:00
smartstatus.cpp Reuse SmartStatus::SelfTestStatus enum. 2018-04-09 15:37:46 +01:00
smartstatus.h Reuse SmartStatus::SelfTestStatus enum. 2018-04-09 15:37:46 +01:00
volumemanagerdevice.cpp Fixing device scanning process 2019-04-03 15:37:47 -06:00
volumemanagerdevice.h Fixing device scanning process 2019-04-03 15:37:47 -06:00
volumemanagerdevice_p.h d-pointerize LvmDevice class. 2018-04-09 02:40:24 +01:00