[gparted] Calibrate whole disk device partitions again (#788308)



commit 12dcebcb4787a7046464509e51388e7edc0a1694
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Sat Aug 20 15:27:56 2016 +0100

    Calibrate whole disk device partitions again (#788308)
    
    Fix up following switch from whole_device flag to TYPE_UNPARTITIONED.
    
    Also calibrate the type for whole disk device partitions.
    
    Bug 788308 - Remove whole_device partition flag

 src/GParted_Core.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index 9d3f5c6..663032f 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -3548,7 +3548,8 @@ bool GParted_Core::set_partition_type( const Partition & partition, OperationDet
 
 bool GParted_Core::calibrate_partition( Partition & partition, OperationDetail & operationdetail ) 
 {
-       if ( partition .type == TYPE_PRIMARY || partition .type == TYPE_LOGICAL || partition .type == 
TYPE_EXTENDED )
+       if ( partition.type == TYPE_PRIMARY  || partition.type == TYPE_LOGICAL       ||
+            partition.type == TYPE_EXTENDED || partition.type == TYPE_UNPARTITIONED    )
        {
                Glib::ustring curr_path = partition.get_path();
                operationdetail.add_child( OperationDetail( String::ucompose( _("calibrate %1"), curr_path ) 
) );


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