Check for SoftwareRAID devices in CreateFileSystemJob.

This commit is contained in:
Caio Carvalho 2018-07-10 23:04:55 -03:00
parent ae8987b82c
commit a8b7222350
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ bool CreateFileSystemJob::run(Report& parent)
else
createResult = partition().fileSystem().create(*report, partition().deviceNode());
if (createResult) {
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) {