|
|
|
@ -37,6 +37,9 @@ namespace PartUtils
|
|
|
|
|
bool
|
|
|
|
|
canBeReplaced( Partition* candidate )
|
|
|
|
|
{
|
|
|
|
|
if ( KPMHelpers::isPartitionFreeSpace( candidate ) )
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
bool ok = false;
|
|
|
|
|
double requiredStorageGB = Calamares::JobQueue::instance()
|
|
|
|
|
->globalStorage()
|
|
|
|
@ -68,6 +71,9 @@ canBeResized( Partition* candidate )
|
|
|
|
|
!candidate->fileSystem().supportShrink() )
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
if ( KPMHelpers::isPartitionFreeSpace( candidate ) )
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
if ( candidate->roles().has( PartitionRole::Primary ) )
|
|
|
|
|
{
|
|
|
|
|
PartitionTable* table = dynamic_cast< PartitionTable* >( candidate->parent() );
|
|
|
|
|