Coding style
This commit is contained in:
parent
3db6d607ca
commit
4716b1c9b4
@ -91,14 +91,14 @@ public:
|
|||||||
FileSystem& fs = partition->fileSystem();
|
FileSystem& fs = partition->fileSystem();
|
||||||
FileSystem::CommandSupportType support = m_length < fs.length() ? fs.supportShrink() : fs.supportGrow();
|
FileSystem::CommandSupportType support = m_length < fs.length() ? fs.supportShrink() : fs.supportGrow();
|
||||||
|
|
||||||
switch (support)
|
switch ( support )
|
||||||
{
|
{
|
||||||
case FileSystem::cmdSupportBackend:
|
case FileSystem::cmdSupportBackend:
|
||||||
if ( !backendResize( &report ) )
|
if ( !backendResize( &report ) )
|
||||||
return Calamares::JobResult::error(
|
return Calamares::JobResult::error(
|
||||||
QString(),
|
QString(),
|
||||||
tr( "Parted failed to resize filesystem." ) + '\n' + report.toText()
|
tr( "Parted failed to resize filesystem." ) + '\n' + report.toText()
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case FileSystem::cmdSupportFileSystem:
|
case FileSystem::cmdSupportFileSystem:
|
||||||
{
|
{
|
||||||
@ -106,9 +106,9 @@ public:
|
|||||||
bool ok = fs.resize( report, partition->partitionPath(), byteLength );
|
bool ok = fs.resize( report, partition->partitionPath(), byteLength );
|
||||||
if ( !ok )
|
if ( !ok )
|
||||||
return Calamares::JobResult::error(
|
return Calamares::JobResult::error(
|
||||||
QString(),
|
QString(),
|
||||||
tr( "Failed to resize filesystem." ) + '\n' + report.toText()
|
tr( "Failed to resize filesystem." ) + '\n' + report.toText()
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
@ -158,8 +158,8 @@ public:
|
|||||||
if ( !ok )
|
if ( !ok )
|
||||||
{
|
{
|
||||||
return Calamares::JobResult::error(
|
return Calamares::JobResult::error(
|
||||||
QString(),
|
QString(),
|
||||||
tr( "Failed to change the geometry of the partition." ) + '\n' + report.toText() );
|
tr( "Failed to change the geometry of the partition." ) + '\n' + report.toText() );
|
||||||
}
|
}
|
||||||
partition->setFirstSector( m_firstSector );
|
partition->setFirstSector( m_firstSector );
|
||||||
partition->setLastSector( lastSector );
|
partition->setLastSector( lastSector );
|
||||||
@ -267,8 +267,8 @@ Calamares::JobResult
|
|||||||
ResizePartitionJob::execJobList( const QList< Calamares::job_ptr >& jobs )
|
ResizePartitionJob::execJobList( const QList< Calamares::job_ptr >& jobs )
|
||||||
{
|
{
|
||||||
QString errorMessage = tr( "The installer failed to resize partition %1 on disk '%2'." )
|
QString errorMessage = tr( "The installer failed to resize partition %1 on disk '%2'." )
|
||||||
.arg( m_partition->partitionPath() )
|
.arg( m_partition->partitionPath() )
|
||||||
.arg( m_device->name() );
|
.arg( m_device->name() );
|
||||||
|
|
||||||
int nbJobs = jobs.size();
|
int nbJobs = jobs.size();
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user