Bug 498091 - Incorrect S.M.A.R.T. attribute interpretation
Summary: Incorrect S.M.A.R.T. attribute interpretation
Status: REPORTED
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (other bugs)
Version First Reported In: 22.12.3
Platform: Debian stable Linux
: NOR minor
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-31 15:24 UTC by tsichrinischris
Modified: 2024-12-31 15:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tsichrinischris 2024-12-31 15:24:00 UTC
SUMMARY
The S.M.A.R.T. attribute with ID 231 (0xE7) is reported as the drive temperature, while for most modern drives it should be the the life left percentage

STEPS TO REPRODUCE
1. Open K.D.E. partition editor
2. Select a SSD that reports this attribute
3. Go to Device > SMART status and scroll all the way down to ID 231

OBSERVED RESULT
The attribute is reported as the drive's temperature

EXPECTED RESULT
The attribute should be reported as the life left of the drive, in terms of program/erase cycles or available reserved blocks. A value of 100 should be reported for new drives and values close to 0 indicate a drive that is about to fail. A value of 0 may also mean that the drive is operating in read-only mode to allow data recovery.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian GNU/Linux 12, Kernel version: 6.1.0-28-amd64 (64-bit)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
I've located the issue of this bug at KPMCore/src/core/smartattribute.cpp, line 166 (https://invent.kde.org/system/kpmcore/-/blob/master/src/core/smartattribute.cpp?ref_type=heads#L166)