[partition] The VG jobs also use KPMCore
- Give them a manager just like other KPMCore-based jobs, so that the privileged helper can be shut off on time.
This commit is contained in:
parent
042cef0945
commit
9c85537659
@ -20,11 +20,12 @@
|
|||||||
#define CREATEVOLUMEGROUPJOB_H
|
#define CREATEVOLUMEGROUPJOB_H
|
||||||
|
|
||||||
#include "Job.h"
|
#include "Job.h"
|
||||||
|
#include "partition/KPMManager.h"
|
||||||
#include <kpmcore/core/partition.h>
|
|
||||||
|
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
|
|
||||||
|
class Partition;
|
||||||
|
|
||||||
class CreateVolumeGroupJob : public Calamares::Job
|
class CreateVolumeGroupJob : public Calamares::Job
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -40,6 +41,7 @@ public:
|
|||||||
void undoPreview();
|
void undoPreview();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
CalamaresUtils::Partition::KPMManager m_kpmcore;
|
||||||
QString m_vgName;
|
QString m_vgName;
|
||||||
QVector< const Partition* > m_pvList;
|
QVector< const Partition* > m_pvList;
|
||||||
qint32 m_peSize;
|
qint32 m_peSize;
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#define DEACTIVATEVOLUMEGROUPJOB_H
|
#define DEACTIVATEVOLUMEGROUPJOB_H
|
||||||
|
|
||||||
#include "Job.h"
|
#include "Job.h"
|
||||||
|
#include "partition/KPMManager.h"
|
||||||
|
|
||||||
class LvmDevice;
|
class LvmDevice;
|
||||||
|
|
||||||
@ -35,6 +36,7 @@ public:
|
|||||||
Calamares::JobResult exec() override;
|
Calamares::JobResult exec() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
CalamaresUtils::Partition::KPMManager m_kpmcore;
|
||||||
LvmDevice* m_device;
|
LvmDevice* m_device;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#define REMOVEVOLUMEGROUPJOB_H
|
#define REMOVEVOLUMEGROUPJOB_H
|
||||||
|
|
||||||
#include "Job.h"
|
#include "Job.h"
|
||||||
|
#include "partition/KPMManager.h"
|
||||||
|
|
||||||
class LvmDevice;
|
class LvmDevice;
|
||||||
|
|
||||||
@ -35,6 +36,7 @@ public:
|
|||||||
Calamares::JobResult exec() override;
|
Calamares::JobResult exec() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
CalamaresUtils::Partition::KPMManager m_kpmcore;
|
||||||
LvmDevice* m_device;
|
LvmDevice* m_device;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#define RESIZEVOLUMEGROUPJOB_H
|
#define RESIZEVOLUMEGROUPJOB_H
|
||||||
|
|
||||||
#include "Job.h"
|
#include "Job.h"
|
||||||
|
#include "partition/KPMManager.h"
|
||||||
|
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
|
|
||||||
@ -42,6 +43,7 @@ private:
|
|||||||
QString targetPartitions() const;
|
QString targetPartitions() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
CalamaresUtils::Partition::KPMManager m_kpmcore;
|
||||||
LvmDevice* m_device;
|
LvmDevice* m_device;
|
||||||
QVector< const Partition* > m_partitionList;
|
QVector< const Partition* > m_partitionList;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user