LVM support #6

Closed
andrius wants to merge 109 commits from (deleted):lvm-support-rebase into master
1 changed files with 6 additions and 0 deletions
Showing only changes of commit 930f936b8c - Show all commits

View File

@ -17,6 +17,7 @@
#include "core/lvmdevice.h"
#include "fs/filesystem.h"
#include "fs/lvm2_pv.h"
#include "fs/filesystemfactory.h"
#include "core/partition.h"
@ -335,6 +336,11 @@ bool LvmDevice::insertPV(Report& report, LvmDevice& dev, const QString& pvPath)
bool LvmDevice::movePV(Report& report, LvmDevice& dev, const QString& pvPath)
{
Q_UNUSED(dev);
if (FS::lvm2_pv::getAllocatedPE(pvPath) <= 0) {
return true;
}
ExternalCommand cmd(report, QStringLiteral("lvm"),
{ QStringLiteral("pvmove"),
pvPath});