LVM support #6

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

View File

@ -85,7 +85,13 @@ Partition* LvmDevice::scanPartition(const QString& lvPath, const Device& dev, Pa
qint64 startSector;
qint64 endSector;
QString mountPoint = QString();
bool mounted = false;
bool mounted = isMounted(lvPath);
KMountPoint::List mountPointList = KMountPoint::currentMountPoints(KMountPoint::NeedRealDeviceName);
mountPointList.append(KMountPoint::possibleMountPoints(KMountPoint::NeedRealDeviceName));
mountPoint = mountPointList.findByDevice(lvPath) ?
mountPointList.findByDevice(lvPath)->mountPoint() :
QString();
ExternalCommand cmd(QStringLiteral("lvm"),
{ QStringLiteral("lvdisplay"),