mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Linux/udisks2/multi-file zip extraction: handle auto-mount better
If mounting partition after FAT32 format fails, check if race occurs in which the Linux distribution was faster in auto-mounting the partition then we were in manually mounting it.
This commit is contained in:
parent
506330f486
commit
0f3a6a2786
2 changed files with 46 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <QObject>
|
||||
#include <QFile>
|
||||
#include <QDBusInterface>
|
||||
|
||||
class UDisks2Api : public QObject
|
||||
{
|
||||
|
@ -18,6 +19,8 @@ public:
|
|||
bool formatDrive(const QString &device, bool mountAfterwards = true);
|
||||
QString mountDevice(const QString &device);
|
||||
void unmountDrive(const QString &device);
|
||||
QByteArrayList mountPoints(const QString &partitionDevice);
|
||||
QByteArrayList mountPoints(const QDBusInterface &filesystem);
|
||||
|
||||
protected:
|
||||
QString _resolveDevice(const QString &device);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue