gparted/src
Mike Fleetwood 7ebedc4bb3 Don't show intrinsic unallocated space (#499202)
Most file systems report intrinsic unallocated space using the statvfs()
system call when mounted, but not using their own tools.  They are:
ext2/3/4, fat16/32, hfs, nilfs2, reiserfs and xfs.  Showing either a
little or no unallocated space, depending on whether a file system is
mounted or not, could be confusing to the user.

When all file systems are created filling their partitions the unused
figure reported by statvfs() and their own tools are the same or very
close.  Also the used plus unallocated figure from statvfs() agrees with
the used figure from their own tools.

For all file systems don't display intrinsic unallocated space (that
below the threshold of 2 to 5%), instead include it as used space.  As
soon as the amount of unallocated space becomes significant display it
everywhere and also trigger the warning.

For display purposes always use the new Partition methods:
get_sectors_used(), get_sectors_unused(), and get_sectors_unallocated().
When calculating new usage figures during Paste and Resize/Move
operations directly access sectors_used, sectors_unused and
sectors_unallocated members.

Bug #499202 - gparted does not see the difference if partition size
              differs from filesystem size
2012-06-18 12:41:59 -06:00
..
.cvsignore added *.swp some modifications to pass 'make distcheck' minor cleanups 2005-11-25 12:59:47 +00:00
DMRaid.cc Fix ignoring return value compiler warnings 2011-07-18 13:31:54 -06:00
Device.cc Add sector size to device display pane 2010-02-20 15:12:26 -07:00
DialogFeatures.cc Show LVM2 PVs as supported, read-only (#160787) 2012-02-02 10:24:31 -07:00
DialogManageFlags.cc disabled resizing of this dialog renamed 'Filesystems' to 'Features' in 2006-04-05 09:33:04 +00:00
Dialog_Base_Partition.cc Set unallocated space for paste or resize/move operations (#499202) 2012-06-18 10:24:29 -06:00
Dialog_Disklabel.cc Bug #634090: Change some attributes to local variables 2011-07-18 13:28:49 -06:00
Dialog_Partition_Copy.cc Include intrinsic unallocated space for resizing purposes (#499202) 2012-06-18 10:24:29 -06:00
Dialog_Partition_Info.cc Don't show intrinsic unallocated space (#499202) 2012-06-18 12:41:59 -06:00
Dialog_Partition_Label.cc Bug #634090: Change some attributes to local variables 2011-07-18 13:28:49 -06:00
Dialog_Partition_New.cc New partition dialog: first filesystem in list is always included 2012-02-18 10:32:30 -07:00
Dialog_Partition_Resize_Move.cc Don't show intrinsic unallocated space (#499202) 2012-06-18 12:41:59 -06:00
Dialog_Progress.cc Reduce graphic processing requirement for pulse bar 2012-01-11 13:13:43 -07:00
Dialog_Rescue_Data.cc Fix attempt data rescue fail to open read-only view (#673246) 2012-04-03 12:35:31 -06:00
DrawingAreaVisualDisk.cc Don't show intrinsic unallocated space (#499202) 2012-06-18 12:41:59 -06:00
FS_Info.cc Fix long scan problem when BIOS floppy setting incorrect 2012-01-06 10:31:14 -07:00
FileSystem.cc Use custom text functions for mount/unmount and swapon/swapoff texts 2012-02-10 10:33:12 -07:00
Frame_Resizer_Base.cc Bug #539092: Deletion of unnecessary null pointer checks 2010-10-06 12:24:51 -06:00
Frame_Resizer_Extended.cc Limit graphic movement according to required boot record space 2010-05-25 16:26:08 -06:00
GParted_Core.cc Don't show intrinsic unallocated space (#499202) 2012-06-18 12:41:59 -06:00
HBoxOperations.cc added popupmenu to operationslist and did some (higrelated) cleanups 2006-09-17 13:23:47 +00:00
LVM2_PV_Info.cc Query unallocated space for LVM2 PVs (#499202) 2012-06-18 10:24:28 -06:00
Makefile.am Enable new fs resize library available with parted-3.1 (#668281) 2012-03-03 11:55:20 -07:00
Operation.cc Fix off by 1 sector math when looking for unallocated space 2010-05-27 10:59:12 -06:00
OperationChangeUUID.cc Restructure and word-smith UUID translatable text 2012-02-10 10:33:13 -07:00
OperationCheck.cc Fixed incorrect spelling of filesystem and mountpoint 2008-11-18 23:58:17 +00:00
OperationCopy.cc Replace default sector size with appropriate sector size 2010-04-26 11:52:33 -06:00
OperationCreate.cc Rename get_length method to get_sector_length 2010-04-28 09:11:44 -06:00
OperationDelete.cc Rename get_length method to get_sector_length 2010-04-28 09:11:44 -06:00
OperationDetail.cc Fix uninitialised read in OperationDetail::set_status() 2012-01-04 14:07:08 -07:00
OperationFormat.cc renamed some enums 2006-07-29 15:20:32 +00:00
OperationLabelPartition.cc gparted-0.3.6 - code recreation from Source Forge 2008-04-07 19:41:18 +00:00
OperationResizeMove.cc Rename get_length method to get_sector_length 2010-04-28 09:11:44 -06:00
Partition.cc Don't show intrinsic unallocated space (#499202) 2012-06-18 12:41:59 -06:00
Proc_Partitions_Info.cc Refactor device parsing logic into Proc_Partitions_Info class 2010-12-07 16:01:54 -07:00
SWRaid.cc Fix detection of multiple SW RAID (md) devices (#668486) 2012-01-23 13:12:48 -07:00
TreeView_Detail.cc Don't show intrinsic unallocated space (#499202) 2012-06-18 12:41:59 -06:00
Utils.cc Create helper functions to check for minimum kernel version 2012-02-10 11:20:47 -07:00
Win_GParted.cc Don't show intrinsic unallocated space (#499202) 2012-06-18 12:41:59 -06:00
btrfs.cc Handle btrfs tools rounding of figures (#499202) 2012-06-18 10:24:29 -06:00
exfat.cc Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
ext2.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
ext3.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
ext4.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
fat16.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
fat32.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
hfs.cc Enable new fs resize library available with parted-3.1 (#668281) 2012-03-03 11:55:20 -07:00
hfsplus.cc Enable new fs resize library available with parted-3.1 (#668281) 2012-03-03 11:55:20 -07:00
jfs.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
linux_swap.cc Restore write label capability for linux-swap 2012-02-18 13:54:58 -07:00
lvm2_pv.cc Query unallocated space for LVM2 PVs (#499202) 2012-06-18 10:24:28 -06:00
main.cc Display pop up dialog on libparted exceptions 2012-01-08 13:03:20 -07:00
nilfs2.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
ntfs.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
reiser4.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
reiserfs.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
ufs.cc Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
xfs.cc Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00