Fixed error when resizing an extended partition

svn path=/trunk/; revision=1104
This commit is contained in:
Curtis Gedak 2009-03-23 18:51:33 +00:00
parent b2f64b8d46
commit 5b9183ca26
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-03-23 Curtis Gedak <gedakc@gmail.com>
* src/DMRaid.cc: Fixed error when resizing an extended partition.
2009-03-16 Curtis Gedak <gedakc@gmail.com> 2009-03-16 Curtis Gedak <gedakc@gmail.com>
* include/DMRaid.h: Enhanced dmraid partition deletion. * include/DMRaid.h: Enhanced dmraid partition deletion.

View File

@ -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 //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 bool exit_status = true ; //assume successful
/*TO TRANSLATORS: looks like update /dev/mapper entry */ /*TO TRANSLATORS: looks like update /dev/mapper entry */