Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JamiKettunen committed Nov 8, 2019
1 parent 4bbaa50 commit d2c79bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/partitionmanager_p.h
Expand Up @@ -43,7 +43,7 @@ namespace UDisks2 {
class Monitor;
}

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

class PartitionManagerPrivate : public QObject, public QSharedData
{
Expand Down

0 comments on commit d2c79bb

Please sign in to comment.