[partition] Chase API change in createNewPartition()
The partition- and filesystem-label setting code was already there, but not in the call to createNewPartition(); now we set the FS label twice (once in the call, once afterwards)
This commit is contained in:
parent
b602d423c7
commit
3d49379bec
@ -230,6 +230,7 @@ PartitionLayout::createPartitions( Device* dev,
|
|||||||
*dev,
|
*dev,
|
||||||
role,
|
role,
|
||||||
entry.partFileSystem,
|
entry.partFileSystem,
|
||||||
|
entry.partLabel,
|
||||||
currentSector,
|
currentSector,
|
||||||
currentSector + sectors - 1,
|
currentSector + sectors - 1,
|
||||||
KPM_PARTITION_FLAG( None ) );
|
KPM_PARTITION_FLAG( None ) );
|
||||||
@ -240,6 +241,7 @@ PartitionLayout::createPartitions( Device* dev,
|
|||||||
*dev,
|
*dev,
|
||||||
role,
|
role,
|
||||||
entry.partFileSystem,
|
entry.partFileSystem,
|
||||||
|
entry.partLabel,
|
||||||
currentSector,
|
currentSector,
|
||||||
currentSector + sectors - 1,
|
currentSector + sectors - 1,
|
||||||
luksPassphrase,
|
luksPassphrase,
|
||||||
|
@ -377,6 +377,7 @@ PartitionJobTests::testResizePartition()
|
|||||||
*m_device,
|
*m_device,
|
||||||
PartitionRole( PartitionRole::Primary ),
|
PartitionRole( PartitionRole::Primary ),
|
||||||
FileSystem::Ext4,
|
FileSystem::Ext4,
|
||||||
|
QStringLiteral( "testp" ),
|
||||||
oldFirst,
|
oldFirst,
|
||||||
oldLast,
|
oldLast,
|
||||||
KPM_PARTITION_FLAG( None ) );
|
KPM_PARTITION_FLAG( None ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user