Detect MBR Extended LBA partitions.
This commit is contained in:
parent
8a3d95e5ec
commit
5a163f8bee
|
@ -251,7 +251,8 @@ void SfdiskBackend::scanDevicePartitions(Device& d, const QJsonArray& jsonPartit
|
||||||
type = detectFileSystem(partitionNode);
|
type = detectFileSystem(partitionNode);
|
||||||
PartitionRole::Roles r = PartitionRole::Primary;
|
PartitionRole::Roles r = PartitionRole::Primary;
|
||||||
|
|
||||||
if ( (d.partitionTable()->type() == PartitionTable::msdos || d.partitionTable()->type() == PartitionTable::msdos_sectorbased) && partitionType.toInt() == 5 ) {
|
if ( (d.partitionTable()->type() == PartitionTable::msdos || d.partitionTable()->type() == PartitionTable::msdos_sectorbased) &&
|
||||||
|
( partitionType == QStringLiteral("5") || partitionType == QStringLiteral("f") ) ) {
|
||||||
r = PartitionRole::Extended;
|
r = PartitionRole::Extended;
|
||||||
type = FileSystem::Type::Extended;
|
type = FileSystem::Type::Extended;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue