Add support for smartmontools 7.0 user_capacity json output

Authored by valeriymalov on May 20 2019, 7:22 PM.

Description

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

Details

Committed
valeriymalovMay 23 2019, 2:43 PM
Reviewer
stikonas
Differential Revision
D21311: Add support for smartmontools 7.0 user_capacity json output
Parents
R16:8238c94447d0: Don't hardcode dbus policy install dir
Branches
Unknown
Tags
Unknown