Create RAID with LinuxRaidMember, Unformatted or Unknown partitions

This commit is contained in:
Caio Carvalho 2018-08-08 17:24:27 -03:00
parent 50af43636d
commit a7680ae169
1 changed files with 3 additions and 1 deletions

View File

@ -119,7 +119,9 @@ 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)
if (p->fileSystem().type() == FileSystem::Type::LinuxRaidMember ||
p->fileSystem().type() == FileSystem::Type::Unformatted ||
p->fileSystem().type() == FileSystem::Type::Unknown)
dialogWidget().listPV().addPartition(*p, false);
}
}