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.
This commit is contained in:
Bart Hakvoort 2006-08-20 10:07:25 +00:00
parent 8e0880e5ea
commit 1234b248d5
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-08-20 Bart Hakvoort <hakvoort@cvs.gnome.org>
* 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 <hakvoort@cvs.gnome.org>
* src/linux_swap.cc: small fix with moving of linux-swap (which seems

View File

@ -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<Partition> & 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