From 5b9183ca26325d888469a2700a2e020394eaa3a5 Mon Sep 17 00:00:00 2001 From: Curtis Gedak Date: Mon, 23 Mar 2009 18:51:33 +0000 Subject: [PATCH] Fixed error when resizing an extended partition svn path=/trunk/; revision=1104 --- ChangeLog | 4 ++++ src/DMRaid.cc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6967722c..ba8e4d8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-03-23 Curtis Gedak + + * src/DMRaid.cc: Fixed error when resizing an extended partition. + 2009-03-16 Curtis Gedak * include/DMRaid.h: Enhanced dmraid partition deletion. diff --git a/src/DMRaid.cc b/src/DMRaid.cc index 1f7fed4c..42a05fd5 100644 --- a/src/DMRaid.cc +++ b/src/DMRaid.cc @@ -359,6 +359,10 @@ bool DMRaid::update_dev_map_entry( const Partition & partition, OperationDetail { //Update dmraid entry by first deleting the entry then recreating the entry + //Skip if extended partition because the only change is to the partition table. + if ( partition .type == GParted::TYPE_EXTENDED ) + return true ; + bool exit_status = true ; //assume successful /*TO TRANSLATORS: looks like update /dev/mapper entry */