Enabling to create and delete SoftwareRAID devices' partitions.
This commit is contained in:
parent
04a5e2914d
commit
6c27d99f2c
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue