Bug 420614

Summary: Devices panel: "Hard disk of xxx.x GiB" displays a strange xxx.x value (NOT being GiB)
Product: [Applications] dolphin Reporter: Valdo <gnu4ever>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: NEEDSINFO WAITINGFORINFO    
Severity: minor CC: danfrantes, dolphin-bugs-null
Priority: NOR    
Version First Reported In: 19.12.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Valdo 2020-04-26 11:33:36 UTC
SUMMARY
Wrong calculation of disk partitions' capacity?

STEPS TO REPRODUCE
The "Hard disk" I'm mentioning is actually a disk partition.
Command 'df -k' lists a capacity of 294243128 blocks of 1K (that is, 280,6 GiB) for a given partition.

OBSERVED RESULT
Dolphin's "Devices" panel displays 286.1 GiB (wrong) for that partition.

Note: same issue (if confirmed to be an issue - in all cases, pretty misleading) observed with kdepartitionmanager, showing 286.10 GiB.
On the other hand, the Device properties (in Dolphin) show a capacity of 280,6 GiB (correct).

EXPECTED RESULT
According to me, Dolphin's "Devices" panel should display 280,6 GiB.

Note: the same expected result goes for kdepartitionmanager.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Not sure whether there is a link with Bug 292795 or not (KDE4 at the time).
Comment 1 Valdo 2020-04-26 11:41:18 UTC
Sorry for mixing , (comma) and . (dot) in my report for the decimal separator. In French, a comma is used, in English it's a dot :)
Comment 2 Christoph Feck 2020-05-14 02:50:28 UTC
Does the size shown in the Devices panel come from Solid?
Comment 3 daniel 2025-10-29 19:30:21 UTC
Hello, 
it is still a thing in Plasma 6.5?
Comment 4 Valdo 2025-10-30 22:13:43 UTC
In Plasma 6.3.6 (I don't have a newer version at hand):
- In Dolphin, a device Properties show the right capacity (expressed in GiB). So I consider this part as being FIXED.
- In KDE Partitions Manager, the same device still shows a wrong value (greater than what I would expect).
Note: I'm now running Debian (compared to 5 years ago), but I don't think it makes any difference.