Add support for smartmontools 7.0 user_capacity json output
ClosedPublic

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

Details

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

Diff Detail

Repository
R16 KPMCore
Branch
smartmontools7fix
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 12000
Build 12018: arc lint + arc unit
valeriymalov requested review of this revision.May 20 2019, 7:25 PM
valeriymalov created this revision.
stikonas accepted this revision.May 21 2019, 8:14 PM
This revision is now accepted and ready to land.May 21 2019, 8:14 PM

Maybe push to 4.0 branch?

valeriymalov closed this revision.May 23 2019, 2:43 PM