Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d2c79bb

Browse files
committedNov 8, 2019
partitionmanager: Use range sd[g-z] for external devices instead
[OnePlus 5*] This fixes system partitions being shown as valid choices and polluting the Settings > Storage screen while also offering dangerous format options for all internal system partitions.
1 parent 4bbaa50 commit d2c79bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/partitionmanager_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace UDisks2 {
4343
class Monitor;
4444
}
4545

46-
static const auto externalDevice = QStringLiteral("mmcblk(?!0)\\d+(?:p\\d+$)?|(sd[a-z]\\d*)|(dm[_-]\\d+(?:d\\d+)?)");
46+
static const auto externalDevice = QStringLiteral("mmcblk(?!0)\\d+(?:p\\d+$)?|(sd[g-z]\\d*)|(dm[_-]\\d+(?:d\\d+)?)");
4747

4848
class PartitionManagerPrivate : public QObject, public QSharedData
4949
{

0 commit comments

Comments
 (0)
This repository has been archived.