Bug 357363

Summary: occupied space value for swap shows total free space.
Product: [Applications] partitionmanager Reporter: Andreas Schöppach <andreas>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.2.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of partitionmanager

Description Andreas Schöppach 2015-12-31 10:16:21 UTC
Created attachment 96374 [details]
screenshot of partitionmanager

Two bugs:
zram entries and wrong occupied value for swap space. 
See screenshot.
Comment 1 Andrius Štikonas 2016-02-21 19:02:20 UTC
Looks like this has nothing to do with zram. Swap does not have mountpoint, so it looks like KDiskFreeSpaceInfo class from KIO just returns total free space of harddrive.
Comment 2 Andrius Štikonas 2016-02-21 19:24:29 UTC
Git commit 227c77e8018f2abda3f2cea235003ce0a705322a by Andrius Štikonas.
Committed on 21/02/2016 at 19:22.
Pushed by stikonas into branch 'master'.

Do not report free space for swap partitions.

Swap partitions have no mount path so KDiskFreeSpaceInfo shows
total free disk space available.

M  +1    -1    src/plugins/libparted/libpartedbackend.cpp

http://commits.kde.org/kpmcore/227c77e8018f2abda3f2cea235003ce0a705322a