From b223e829ab07dce6acf7e18fd9a4c7054cd93fdf Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Sun, 18 Jun 2006 19:38:29 +0000 Subject: [PATCH] renamed resize_partition to resize_move_partition to better reflect its * include/GParted_Core.h, src/GParted_Core.cc: renamed resize_partition to resize_move_partition to better reflect its functionality. --- ChangeLog | 6 ++++++ include/GParted_Core.h | 10 +++++----- src/GParted_Core.cc | 44 +++++++++++++++++++++--------------------- 3 files changed, 33 insertions(+), 27 deletions(-) diff --git a/ChangeLog b/ChangeLog index f494cb50..763a2725 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-06-18 Bart Hakvoort + + * include/GParted_Core.h, + src/GParted_Core.cc: renamed resize_partition to + resize_move_partition to better reflect its functionality. + 2006-06-18 Bart Hakvoort * include/GParted_Core.h, diff --git a/include/GParted_Core.h b/include/GParted_Core.h index 49d42162..042c95d3 100644 --- a/include/GParted_Core.h +++ b/include/GParted_Core.h @@ -98,11 +98,11 @@ private: const Partition & partition_old, Partition & partition_new, std::vector & operation_detail ) ; - bool resize_partition( const Partition & partition_old, - Partition & partition_new, - bool fixed_start, - std::vector & operation_details, - Sector min_size = 0 ) ; + bool resize_move_partition( const Partition & partition_old, + Partition & partition_new, + bool fixed_start, + std::vector & operation_details, + Sector min_size = 0 ) ; bool resize_filesystem( const Partition & partition_old, const Partition & partition_new, std::vector & operation_details, diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc index 89f87ba3..602e6896 100644 --- a/src/GParted_Core.cc +++ b/src/GParted_Core.cc @@ -1041,11 +1041,11 @@ bool GParted_Core::move( const Device & device, if ( move_filesystem( partition_old, temp, operation_details ) ) { //now move the partition - if ( resize_partition( partition_old, - temp, - false, - operation_details, - temp .get_length() ) ) + if ( resize_move_partition( partition_old, + temp, + false, + operation_details, + temp .get_length() ) ) { //now the partition and the filesystem are moved, we can grow it.. partition_new .sector_start = temp .sector_start ; @@ -1065,22 +1065,22 @@ bool GParted_Core::move( const Device & device, //now we can move it partition_new .sector_end = partition_new .sector_start + temp .get_length() -1 ; return move_filesystem( temp, partition_new, operation_details ) && - resize_partition( temp, - partition_new, - false, - operation_details, - partition_new .get_length() ) ; + resize_move_partition( temp, + partition_new, + false, + operation_details, + partition_new .get_length() ) ; } return false ; } else return move_filesystem( partition_old, partition_new, operation_details ) && - resize_partition( partition_old, - partition_new, - false, - operation_details, - partition_new .get_length() ) ; + resize_move_partition( partition_old, + partition_new, + false, + operation_details, + partition_new .get_length() ) ; } bool GParted_Core::move_filesystem( const Partition & partition_old, @@ -1275,7 +1275,7 @@ bool GParted_Core::resize( const Device & device, { //extended partition if ( partition_old .type == GParted::TYPE_EXTENDED ) - return resize_partition( partition_old, partition_new, false, operation_details ) ; + return resize_move_partition( partition_old, partition_new, false, operation_details ) ; bool succes = false ; @@ -1305,7 +1305,7 @@ bool GParted_Core::resize( const Device & device, succes = resize_filesystem( partition_old, partition_new, operation_details, device .cylsize ) ; if ( succes ) - succes = resize_partition( + succes = resize_move_partition( partition_old, partition_new, ! get_fs( partition_new .filesystem ) .move, @@ -1328,11 +1328,11 @@ bool GParted_Core::resize( const Device & device, return false ; } -bool GParted_Core::resize_partition( const Partition & partition_old, - Partition & partition_new, - bool fixed_start, - std::vector & operation_details, - Sector min_size ) +bool GParted_Core::resize_move_partition( const Partition & partition_old, + Partition & partition_new, + bool fixed_start, + std::vector & operation_details, + Sector min_size ) { operation_details .push_back( OperationDetails( _("resize/move partition") ) ) ; /*FIXME: try to find fitting descriptions for all situations