diff --git a/src/jobs/resizevolumegroupjob.cpp b/src/jobs/resizevolumegroupjob.cpp index 1c17296..24a1069 100644 --- a/src/jobs/resizevolumegroupjob.cpp +++ b/src/jobs/resizevolumegroupjob.cpp @@ -18,6 +18,7 @@ #include "jobs/resizevolumegroupjob.h" #include "core/lvmdevice.h" +#include "fs/luks.h" #include "util/report.h" @@ -40,10 +41,11 @@ bool ResizeVolumeGroupJob::run(Report& parent) Report* report = jobStarted(parent); for (const auto &p : partList()) { + const QString deviceNode = p->roles().has(PartitionRole::Luks) ? static_cast(&p->fileSystem())->mapperName() : p->partitionPath(); if (type() == ResizeVolumeGroupJob::Grow) - rval = LvmDevice::insertPV(*report, device(), p->partitionPath()); // FIXME: LUKS + rval = LvmDevice::insertPV(*report, device(), deviceNode); else if (type() == ResizeVolumeGroupJob::Shrink) - rval = LvmDevice::removePV(*report, device(), p->partitionPath()); // FIXME: LUKS + rval = LvmDevice::removePV(*report, device(), deviceNode); if (rval == false) break;