Reproduce and fix bug #28
This commit is contained in:
parent
99fe98a9cf
commit
568f2abd0b
@ -83,7 +83,7 @@ CreatePartitionJob::exec()
|
|||||||
backendPartitionTable->commit();
|
backendPartitionTable->commit();
|
||||||
|
|
||||||
FileSystem& fs = m_partition->fileSystem();
|
FileSystem& fs = m_partition->fileSystem();
|
||||||
if ( fs.type() == FileSystem::Unformatted )
|
if ( fs.type() == FileSystem::Unformatted || fs.type() == FileSystem::Extended )
|
||||||
return Calamares::JobResult::ok();
|
return Calamares::JobResult::ok();
|
||||||
|
|
||||||
if ( !fs.create( report, partitionPath ) )
|
if ( !fs.create( report, partitionPath ) )
|
||||||
|
@ -171,7 +171,7 @@ JobTests::testCreatePartitionExtended()
|
|||||||
m_queue.enqueue( job_ptr( job ) );
|
m_queue.enqueue( job_ptr( job ) );
|
||||||
|
|
||||||
partition = firstFreePartition( m_device->partitionTable() );
|
partition = firstFreePartition( m_device->partitionTable() );
|
||||||
job = newCreatePartitionJob( partition, PartitionRole( PartitionRole::Extended ), FileSystem::Unformatted, 10 * MB);
|
job = newCreatePartitionJob( partition, PartitionRole( PartitionRole::Extended ), FileSystem::Extended, 10 * MB);
|
||||||
job->updatePreview();
|
job->updatePreview();
|
||||||
m_queue.enqueue( job_ptr( job ) );
|
m_queue.enqueue( job_ptr( job ) );
|
||||||
Partition* extendedPartition = job->partition();
|
Partition* extendedPartition = job->partition();
|
||||||
|
Loading…
Reference in New Issue
Block a user