From c5f508c520e88be5603646b706992213ef29c952 Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Mon, 12 Dec 2005 09:36:42 +0000 Subject: [PATCH] don't use wait_for_node() if resizing an extended partition (they don't * src/GParted_Core.cc: don't use wait_for_node() if resizing an extended partition (they don't have nodes :P) --- ChangeLog | 5 +++++ src/GParted_Core.cc | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86ce28ac..51c7b399 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-12-12 Bart Hakvoort + + * src/GParted_Core.cc: don't use wait_for_node() if resizing an + extended partition (they don't have nodes :P) + 2005-12-11 Bart Hakvoort * po/POTFILES.in: added include/Utils.h diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc index 52a332af..0f65390f 100644 --- a/src/GParted_Core.cc +++ b/src/GParted_Core.cc @@ -782,8 +782,11 @@ bool GParted_Core::Resize_Container_Partition( const Partition & partition_old, close_device_and_disk( ) ; } - - return wait_for_node( partition_new .partition ) && return_value ; + + if ( partition_old .type == GParted::TYPE_EXTENDED ) + return return_value ; + else + return wait_for_node( partition_new .partition ) && return_value ; } bool GParted_Core::Resize_Normal_Using_Libparted( const Partition & partition_old, const Partition & partition_new )