Changing eraseDeviceMDSuperblock call in software RAID creation
This commit is contained in:
parent
fed87159da
commit
51d295ca5d
|
@ -387,8 +387,7 @@ bool SoftwareRAID::createSoftwareRAID(Report &report,
|
||||||
args << QStringLiteral("--raid-devices=") + QString::number(devicePathList.size());
|
args << QStringLiteral("--raid-devices=") + QString::number(devicePathList.size());
|
||||||
|
|
||||||
for (const QString path : qAsConst(devicePathList)) {
|
for (const QString path : qAsConst(devicePathList)) {
|
||||||
if (!eraseDeviceMDSuperblock(path))
|
eraseDeviceMDSuperblock(path);
|
||||||
return false;
|
|
||||||
|
|
||||||
args << path;
|
args << path;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue