LVM support #6

Closed
andrius wants to merge 109 commits from (deleted):lvm-support-rebase into master
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 3898fec758 - Show all commits

View File

@ -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);
}

View File

@ -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();