From 1234b248d5233c0a11b0ea88b65e396855219708 Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Sun, 20 Aug 2006 10:07:25 +0000 Subject: [PATCH] due to some restrictions it was no longer possible to shrink swap * src/Dialog_Partition_Resize_Move.cc: due to some restrictions it was no longer possible to shrink swap filesystems. fixed. --- ChangeLog | 5 +++++ src/Dialog_Partition_Resize_Move.cc | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 75bffddd..eeb6573b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-08-20 Bart Hakvoort + + * src/Dialog_Partition_Resize_Move.cc: due to some restrictions it as + no longer possible to shrink swap filesystems. fixed. + 2006-08-20 Bart Hakvoort * src/linux_swap.cc: small fix with moving of linux-swap (which seems diff --git a/src/Dialog_Partition_Resize_Move.cc b/src/Dialog_Partition_Resize_Move.cc index 7e46e4c1..efebbe02 100644 --- a/src/Dialog_Partition_Resize_Move.cc +++ b/src/Dialog_Partition_Resize_Move.cc @@ -62,7 +62,9 @@ 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 ;) - if ( selected_partition .sectors_used == -1 && selected_partition .status != STAT_NEW ) + if ( selected_partition .sectors_used == -1 && + selected_partition .status != STAT_NEW && + selected_partition .filesystem != FS_LINUX_SWAP ) fs .shrink = GParted::FS::NONE ; //see if we need a fixed_start