diff --git a/src/core/partitiontable.cpp b/src/core/partitiontable.cpp index acc2080..e9a1979 100644 --- a/src/core/partitiontable.cpp +++ b/src/core/partitiontable.cpp @@ -295,7 +295,7 @@ bool PartitionTable::getUnallocatedRange(const Device& d, PartitionNode& parent, } return end - start + 1 >= PartitionAlignment::sectorAlignment(device); - } else if (d.type() == Device::Type::LVM_Device) { + } else if (d.type() == Device::Type::LVM_Device || d.type() == Device::Type::SoftwareRAID_Device) { if (end - start + 1 > 0) { return true; } diff --git a/src/core/raid/softwareraid.cpp b/src/core/raid/softwareraid.cpp index e2779c0..c1725d0 100644 --- a/src/core/raid/softwareraid.cpp +++ b/src/core/raid/softwareraid.cpp @@ -130,7 +130,7 @@ qint64 SoftwareRAID::getChunkSize(const QString &path) QRegularExpression re(QStringLiteral("Chunk Size :\\s+(\\d+)")); QRegularExpressionMatch reMatch = re.match(output); if (reMatch.hasMatch()) - return reMatch.captured(1).toLongLong() * 1024; + return reMatch.captured(1).toLongLong(); } return -1;