diff --git a/src/core/partitiontable.cpp b/src/core/partitiontable.cpp index e9a1979..f5a4322 100644 --- a/src/core/partitiontable.cpp +++ b/src/core/partitiontable.cpp @@ -428,7 +428,7 @@ void PartitionTable::updateUnallocated(const Device& d) qint64 PartitionTable::defaultFirstUsable(const Device& d, TableType t) { Q_UNUSED(t) - if (d.type() == Device::Type::LVM_Device) { + if (d.type() == Device::Type::LVM_Device || d.type() == Device::Type::SoftwareRAID_Device) { return 0; } diff --git a/src/jobs/createpartitiontablejob.cpp b/src/jobs/createpartitiontablejob.cpp index 557a5e4..f67cae9 100644 --- a/src/jobs/createpartitiontablejob.cpp +++ b/src/jobs/createpartitiontablejob.cpp @@ -44,7 +44,7 @@ bool CreatePartitionTableJob::run(Report& parent) Report* report = jobStarted(parent); - if (device().type() == Device::Type::Disk_Device) { + if (device().type() == Device::Type::Disk_Device || device().type() == Device::Type::SoftwareRAID_Device) { std::unique_ptr backendDevice = CoreBackendManager::self()->backend()->openDevice(device()); if (backendDevice != nullptr) { diff --git a/src/jobs/setpartgeometryjob.cpp b/src/jobs/setpartgeometryjob.cpp index 30e218a..b1c9d6f 100644 --- a/src/jobs/setpartgeometryjob.cpp +++ b/src/jobs/setpartgeometryjob.cpp @@ -55,7 +55,7 @@ bool SetPartGeometryJob::run(Report& parent) Report* report = jobStarted(parent); - if(device().type() == Device::Type::Disk_Device) { + if(device().type() == Device::Type::Disk_Device || device().type() == Device::Type::SoftwareRAID_Device) { std::unique_ptr backendDevice = CoreBackendManager::self()->backend()->openDevice(device()); if (backendDevice) {