From 4c2e8b469c2114629ca85115d6129d826863c965 Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Tue, 8 Aug 2006 19:08:36 +0000 Subject: [PATCH] fixed small issue with shrinking of a new (virtual) partition * src/Dialog_Partition_Resize_Move.cc: fixed small issue with shrinking of a new (virtual) partition --- ChangeLog | 5 +++++ src/Dialog_Partition_Resize_Move.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 72adc2e5..185d225e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-08-08 Bart Hakvoort + + * src/Dialog_Partition_Resize_Move.cc: fixed small issue with + shrinking of a new (virtual) partition + 2006-08-08 Bart Hakvoort * implemented some stuff to find a good blocksize to use for diff --git a/src/Dialog_Partition_Resize_Move.cc b/src/Dialog_Partition_Resize_Move.cc index 89d844cf..7e46e4c1 100644 --- a/src/Dialog_Partition_Resize_Move.cc +++ b/src/Dialog_Partition_Resize_Move.cc @@ -61,8 +61,8 @@ void Dialog_Partition_Resize_Move::Set_Data( const Partition & selected_partitio void Dialog_Partition_Resize_Move::Resize_Move_Normal( const std::vector & partitions ) { - //little bit of paranoia ;)//FIXME: partition with STAT_NEW should not be restricted ;) - if ( selected_partition .sectors_used == -1 ) + //little bit of paranoia ;) + if ( selected_partition .sectors_used == -1 && selected_partition .status != STAT_NEW ) fs .shrink = GParted::FS::NONE ; //see if we need a fixed_start