gparted/include
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.h Remove all usage of kpartx to avoid partition entry duplicates 2011-02-22 14:40:02 -07:00
Device.h Add sector size to device display pane 2010-02-20 15:12:26 -07:00
DialogFeatures.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
DialogManageFlags.h improved behaviour of flagmanagementdialog. 2006-04-02 11:18:34 +00:00
Dialog_Base_Partition.h Bug #634090: Change some attributes to local variables 2011-07-18 13:28:49 -06:00
Dialog_Disklabel.h Bug #634090: Change some attributes to local variables 2011-07-18 13:28:49 -06:00
Dialog_Partition_Copy.h Set sector size and add to operation and dialog methods 2010-04-19 19:22:31 -06:00
Dialog_Partition_Info.h Display unallocated space in the information dialog (#499202) 2012-06-18 10:24:28 -06:00
Dialog_Partition_Label.h Bug #634090: Change some attributes to local variables 2011-07-18 13:28:49 -06:00
Dialog_Partition_New.h Fix unused parameter compiler warning 2011-07-18 13:31:54 -06:00
Dialog_Partition_Resize_Move.h in some places i still used MiB's instead of sectors to store sizes. this 2006-02-25 10:09:30 +00:00
Dialog_Progress.h Bug #634090: Change some attributes to local variables 2011-07-18 13:28:49 -06:00
Dialog_Rescue_Data.h Added support to lost data recovery using gpart 2011-01-29 14:58:02 -07:00
DrawingAreaVisualDisk.h Display unallocated space in the main window (#499202) 2012-06-18 10:24:28 -06:00
FS_Info.h Add methods to FS_Info class to get path by uuid and by label 2010-12-09 14:06:38 -07:00
FileSystem.h Query unallocated space for unmounted file systems (#499202) 2012-06-18 10:24:28 -06:00
Frame_Resizer_Base.h Limit graphic movement according to required boot record space 2010-05-25 16:26:08 -06:00
Frame_Resizer_Extended.h did lots of work on the resizer, it's behaviour should be more natural and 2006-03-01 19:16:13 +00:00
GParted_Core.h Enable new fs resize library available with parted-3.1 (#668281) 2012-03-03 11:55:20 -07:00
HBoxOperations.h added popupmenu to operationslist and did some (higrelated) cleanups 2006-09-17 13:23:47 +00:00
LVM2_PV_Info.h Query unallocated space for LVM2 PVs (#499202) 2012-06-18 10:24:28 -06:00
Makefile.am Cache results from querying all LVM2 PVs (#160787) 2012-02-02 10:24:28 -07:00
Operation.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
OperationChangeUUID.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
OperationCheck.h added 'check' operation. The functionality was already there, but it was 2006-11-26 14:27:16 +00:00
OperationCopy.h implemented some stuff to find a good blocksize to use for copy/move. 2006-08-08 19:04:29 +00:00
OperationCreate.h renamed some enums 2006-07-29 15:20:32 +00:00
OperationDelete.h renamed some enums 2006-07-29 15:20:32 +00:00
OperationDetail.h Cleanup file copyright entries 2009-11-05 11:08:49 -07:00
OperationFormat.h renamed some enums 2006-07-29 15:20:32 +00:00
OperationLabelPartition.h gparted-0.3.6 - code recreation from Source Forge 2008-04-07 19:41:18 +00:00
OperationResizeMove.h renamed some enums 2006-07-29 15:20:32 +00:00
Partition.h Don't show intrinsic unallocated space (#499202) 2012-06-18 12:41:59 -06:00
Proc_Partitions_Info.h Refactor device parsing logic into Proc_Partitions_Info class 2010-12-07 16:01:54 -07:00
SWRaid.h Added auto detection of Linux software RAID devices 2009-11-03 13:30:44 -07:00
TreeView_Detail.h trivial cleanups 2006-09-16 15:00:25 +00:00
Utils.h Enable new fs resize library available with parted-3.1 (#668281) 2012-03-03 11:55:20 -07:00
Win_GParted.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
btrfs.h Handle btrfs tools rounding of figures (#499202) 2012-06-18 10:24:29 -06:00
exfat.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
ext2.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
ext3.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
ext4.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
fat16.h Implement changing UUID for NTFS (#667278) 2012-02-10 10:33:13 -07:00
fat32.h Implement changing UUID for NTFS (#667278) 2012-02-10 10:33:13 -07:00
hfs.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
hfsplus.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
i18n.h enabled support for reiserfs 2004-10-06 15:32:40 +00:00
jfs.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
linux_swap.h Use custom text functions for mount/unmount and swapon/swapoff texts 2012-02-10 10:33:12 -07:00
lvm2_pv.h Report space usage of LVM2 PVs (#160787) 2012-02-02 10:17:29 -07:00
nilfs2.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
ntfs.h Implement changing UUID for NTFS (#667278) 2012-02-10 10:33:13 -07:00
reiser4.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
reiserfs.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
ufs.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00
xfs.h Add support for setting UUID (#667278) 2012-01-23 12:32:27 -07:00