mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-08-27 11:40:03 +00:00
Remove last trace of cylinder size adjustments in the resize dialog (#749867)
This commit from 2010-05-20 removed use of cylinder size increase in the
minimum, and cylinder size decrease in the maximum file system sizes
from the resize/move dialog.
e62a23b5b5
Add partition alignment option to align to MiB (#617409)
This cylinder size limit adjustments were being performed using the
Dialog_Base_Partition::BUF member variable. Now in the
Dialog_Partition_Resize_Move class it is never accessed, and only
unnecessarily set. Move BUF from the common base class into the
Dialog_Partition_Copy class where it is still used.
Bug 749867 - Some limits are adjusted by arcane cylinder size amount
when copying and resizing in a single operation
This commit is contained in:
parent
9ced6b051e
commit
b9262922a7
|
@ -90,8 +90,7 @@ protected:
|
|||
bool fixed_start, GRIP ;
|
||||
double before_value ;
|
||||
FS fs ;
|
||||
short BUF ; //used in resize and copy ( safety reasons )
|
||||
|
||||
|
||||
private:
|
||||
void Check_Change( ) ;
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ public:
|
|||
Partition Get_New_Partition( Byte_Value sector_size ) ;
|
||||
|
||||
private:
|
||||
short BUF; // Used in copy (safety reasons)
|
||||
};
|
||||
|
||||
}//GParted
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace GParted
|
|||
class Dialog_Partition_Resize_Move : public Dialog_Base_Partition
|
||||
{
|
||||
public:
|
||||
Dialog_Partition_Resize_Move( const FS & fs, Sector cylinder_size ) ;
|
||||
Dialog_Partition_Resize_Move( const FS & fs );
|
||||
void Set_Data( const Partition & selected_partition, const std::vector <Partition> & partitions ) ;
|
||||
|
||||
private:
|
||||
|
|
|
@ -21,11 +21,9 @@
|
|||
namespace GParted
|
||||
{
|
||||
|
||||
Dialog_Partition_Resize_Move::Dialog_Partition_Resize_Move( const FS & fs, Sector cylinder_size )
|
||||
Dialog_Partition_Resize_Move::Dialog_Partition_Resize_Move( const FS & fs )
|
||||
{
|
||||
this ->fs = fs ;
|
||||
|
||||
BUF = cylinder_size * 2 ;
|
||||
}
|
||||
|
||||
void Dialog_Partition_Resize_Move::Set_Data( const Partition & selected_partition,
|
||||
|
|
|
@ -1612,10 +1612,9 @@ void Win_GParted::activate_resize()
|
|||
for (unsigned int t = 0 ; t < operations .size() ; t++ )
|
||||
if ( operations[ t ] ->device == devices[ current_device ] )
|
||||
operations[ t ] ->apply_to_visual( partitions ) ;
|
||||
|
||||
Dialog_Partition_Resize_Move dialog( gparted_core .get_fs( selected_partition .filesystem ),
|
||||
devices[ current_device ] .cylsize ) ;
|
||||
|
||||
|
||||
Dialog_Partition_Resize_Move dialog( gparted_core.get_fs( selected_partition.filesystem ) );
|
||||
|
||||
if ( selected_partition .type == GParted::TYPE_LOGICAL )
|
||||
{
|
||||
unsigned int ext = 0 ;
|
||||
|
|
Loading…
Reference in a new issue