Created attachment 120426 [details] Example of a smart analysis of a HDD almost new SUMMARY Smart analysis of a drive is wrong in the "Overall assessment". STEPS TO REPRODUCE 1. Select Drive 2. Context Menu 3. Smart analysis OBSERVED RESULT Overall assessment: Has many bad sectors Bad sectors: none EXPECTED RESULT Overall assessment: No comment about bad sectors if there are none SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro KDE KDE Plasma Version: 5.15.5 ADDITIONAL INFORMATION I've tested 7 HDDs and 2 SSD. Some of them were brand new. All of them have "Overall assessment = Has many bad sectors" and then "Bad sectors = none"
Confirming that it happens on my system too. Probably a regression from libatasmart->smartmontools port but I guess should be easy to fix.
It seems that m_Size = 0 in SmartDiskInformation class instead of being set to disk size. This causes bad assessment.
I have a fix now. I'll push it tomorrow.
Created attachment 120607 [details] attachment-6780-0.html That's great! Thanks for letting me know. JL On Wed, Jun 5, 2019 at 7:26 PM Andrius Štikonas <bugzilla_noreply@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=408139 > > Andrius Štikonas <andrius@stikonas.eu> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > Resolution|--- |FIXED > Status|CONFIRMED |RESOLVED > > -- > You are receiving this mail because: > You reported the bug.