[gparted] Avoid warning display when moving start of extended partition



commit c814b25a3a4ee6261dc1e9e642e723c184155525
Author: Curtis Gedak <gedakc gmail com>
Date:   Tue Jan 24 11:20:43 2012 -0700

    Avoid warning display when moving start of extended partition
    
    Moving the start sector of an extended partition should not adversely
    affect booting an operating system because an extended partition is
    only a container for logical partitions.

 src/Win_GParted.cc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 6db904d..25d05e5 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -1542,7 +1542,9 @@ void Win_GParted::activate_resize()
 			Add_Operation( operation ) ;
 
 			//Display notification if move operation has been queued
-			if ( operation ->partition_original .sector_start != operation ->partition_new .sector_start )
+			if (   operation ->partition_original .sector_start != operation ->partition_new .sector_start
+			    && operation ->partition_original .type != TYPE_EXTENDED
+			   )
 			{
 				//Warn that move operation might break boot process
 				Gtk::MessageDialog dialog( *this



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