Allowing only LinuxRaidMember partitions for RAID creation.
This commit is contained in:
parent
a87f042468
commit
50af43636d
|
@ -119,8 +119,7 @@ void CreateVolumeGroupDialog::updatePartitionList()
|
|||
for (const Device *d : qAsConst(m_Devices)) {
|
||||
if (d->type() != Device::Type::SoftwareRAID_Device && d->partitionTable() != nullptr) {
|
||||
for (const Partition *p : qAsConst(d->partitionTable()->children())) {
|
||||
if (p->fileSystem().type() != FileSystem::Type::LinuxRaidMember &&
|
||||
!p->roles().has(PartitionRole::Role::Unallocated))
|
||||
if (p->fileSystem().type() == FileSystem::Type::LinuxRaidMember)
|
||||
dialogWidget().listPV().addPartition(*p, false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue