Move LVM removeVG parameter to LvmDevice instead of QString of VG name.
This commit is contained in:
parent
ccd4cd7e4e
commit
3898fec758
|
@ -334,10 +334,10 @@ bool LvmDevice::createVG(Report& report, const QString vgname, const QStringList
|
|||
return (cmd.run(-1) && cmd.exitCode() == 0);
|
||||
}
|
||||
|
||||
bool LvmDevice::removeVG(Report& report, const QString vgname)
|
||||
bool LvmDevice::removeVG(Report& report, LvmDevice& dev)
|
||||
{
|
||||
ExternalCommand cmd(report, QStringLiteral("lvm"),
|
||||
{ QStringLiteral("vgremove"),
|
||||
vgname });
|
||||
dev.name() });
|
||||
return (cmd.run(-1) && cmd.exitCode() == 0);
|
||||
}
|
||||
|
|
|
@ -68,8 +68,8 @@ public:
|
|||
static bool removePV(Report& report, LvmDevice& dev, const QString& pvPath);
|
||||
static bool insertPV(Report& report, LvmDevice& dev, const QString& pvPath);
|
||||
|
||||
static bool removeVG(Report& report, LvmDevice& dev);
|
||||
static bool createVG(Report& report, const QString vgname, const QStringList pvlist);
|
||||
static bool removeVG(Report& report, const QString vgname);
|
||||
|
||||
protected:
|
||||
void initPartitions();
|
||||
|
|
Loading…
Reference in New Issue