Enabling to create and delete SoftwareRAID devices' partitions.

This commit is contained in:
Caio Carvalho 2018-07-10 20:03:59 -03:00
parent 04a5e2914d
commit 6c27d99f2c
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ bool CreatePartitionJob::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<CoreBackendDevice> backendDevice = CoreBackendManager::self()->backend()->openDevice(device());
if (backendDevice) {

View File

@ -57,7 +57,7 @@ bool DeletePartitionJob::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<CoreBackendDevice> backendDevice = CoreBackendManager::self()->backend()->openDevice(device());
if (backendDevice) {