Bug 180952

Summary: system monitor - harddisk showing wrong free space left
Product: [Plasma] plasma4 Reporter: SlashDevDsp <slashdevdsp>
Component: widget-systemmonitorAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jared.harder, kde_bugzilla_2
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description SlashDevDsp 2009-01-16 11:24:29 UTC
Version:            (using Devel)
Compiler:          g++ 4.1.3 
OS:                Linux
Installed from:    Compiled sources

The root partition (/) free space shown is wrong in the system monitor harddisk plasmoid, see screenshot below. Highlighted the root partition(/) with df on konsole (showing 1.2gb) where as the plasmoid shows 4.4GiB

http://img107.imageshack.us/img107/9311/snapshot1ga5.jpg
Comment 1 SlashDevDsp 2009-01-16 11:25:47 UTC
this is on: ubuntu 7.10 with the following kernel
Linux lappy 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
Comment 2 Jared Harder 2009-02-03 05:00:20 UTC
I'm experiencing this same functionality on KDE 4.2.0 from Ubuntu repositories.

An example drive in the plasmoid shows 14.4GB free, but df -h shows ~450MB free.  What I believe is happening is the plasmoid is calculating the free space based on (formatted size - total used), and isn't taking into account the journal.  The journal on my example drive is approximately 14GB, and the sum of the journal and the true remaining disk space is the value that the System Monitor plasmoid is reporting.
Comment 3 Petri Damstén 2009-02-23 16:22:29 UTC
SVN commit 930465 by pdamsten:

Use bavail it's consistent with df.
BUG:180952

 M  +1 -1      soliddeviceengine.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=930465
Comment 4 Petri Damstén 2009-05-11 09:22:32 UTC
*** Bug 191434 has been marked as a duplicate of this bug. ***