From fd8c81921e75a4a35473c5eefc4773be6211bbea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Fri, 29 Jul 2016 15:46:00 +0100 Subject: [PATCH] Get rid of unused LVM flag for LVM LV. --- src/core/lvmdevice.cpp | 4 ++-- src/fs/luks.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/lvmdevice.cpp b/src/core/lvmdevice.cpp index 9eee081..c7c8029 100644 --- a/src/core/lvmdevice.cpp +++ b/src/core/lvmdevice.cpp @@ -90,7 +90,7 @@ Partition* LvmDevice::scanPartition(const QString& lvpath, const LvmDevice& dev, * 1. representing the actual LV start from 0 -> size of LV - 1 * 2. representing abstract LV's sector inside a VG partitionTable * start from last sector + 1 of last Partitions -> size of LV - 1 - * Reason for this is for the LV Partition to worrks nicely with other parts of the codebase + * Reason for this is for the LV Partition to work nicely with other parts of the codebase * without too many special cases. */ @@ -157,7 +157,7 @@ Partition* LvmDevice::scanPartition(const QString& lvpath, const LvmDevice& dev, startSector, endSector, lvpath, - PartitionTable::Flag::FlagLvm, + PartitionTable::Flag::FlagNone, mountPoint, mounted); return part; diff --git a/src/fs/luks.cpp b/src/fs/luks.cpp index 35234d0..f88c69b 100644 --- a/src/fs/luks.cpp +++ b/src/fs/luks.cpp @@ -484,7 +484,7 @@ bool luks::resize(Report& report, const QString& deviceNode, qint64 newLength) c } else if (m_innerFs->resize(report, mapperNode, payloadLength)) { - ExternalCommand cryptResizeCmd(report, QStringLiteral("cryptsetup"), + ExternalCommand cryptResizeCmd(report, QStringLiteral("cryptsetup"), { QStringLiteral("--size"), QString::number(payloadLength / /*m_logicalSectorSize*/ 512), // LUKS assume 512 bytes sector QStringLiteral("resize"), mapperNode }); report.line() << xi18nc("@info:progress", "Resizing LUKS crypt on partition %1.", deviceNode);