Checking for SoftwareRAID_Device type in partition table job.
This commit is contained in:
parent
ab7def5e7d
commit
a2d601d512
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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<CoreBackendDevice> backendDevice = CoreBackendManager::self()->backend()->openDevice(device());
|
||||
|
||||
if (backendDevice != nullptr) {
|
||||
|
|
|
@ -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<CoreBackendDevice> backendDevice = CoreBackendManager::self()->backend()->openDevice(device());
|
||||
|
||||
if (backendDevice) {
|
||||
|
|
Loading…
Reference in New Issue