Allowing only LinuxRaidMember partitions for RAID creation.

This commit is contained in:
Caio Carvalho 2018-08-08 16:39:25 -03:00
parent a87f042468
commit 50af43636d
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}