[gnome-disk-utility] Always show holes bigger than 1 MiB



commit cda6de3d25955cda5c03d9e1a6eca2d6d79019cb
Author: David Zeuthen <zeuthen gmail com>
Date:   Tue Dec 4 11:50:20 2012 -0500

    Always show holes bigger than 1 MiB
    
    Our logic here was a bit flawed and caused issues on typical Linux
    installations (e.g. large disks and small /boot partitions).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688374
    
    Signed-off-by: David Zeuthen <zeuthen gmail com>

 src/disks/gduvolumegrid.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/disks/gduvolumegrid.c b/src/disks/gduvolumegrid.c
index b931435..3ba5c62 100644
--- a/src/disks/gduvolumegrid.c
+++ b/src/disks/gduvolumegrid.c
@@ -1333,9 +1333,9 @@ recompute_grid (GduVolumeGrid *grid)
   top_size = udisks_block_get_size (top_block);
 
   /* include "Free Space" elements if there is at least this much slack between
-   * partitions (currently 1% of the disk, at least 1MB)
+   * partitions (currently 1% of the disk, but at most 1MiB)
    */
-  free_space_slack = MAX (top_size / 100, 1000*1000);
+  free_space_slack = MIN (top_size / 100, 1024*1024);
 
   partitions = NULL;
   logical_partitions = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]