QList<QString> -> QStringList.
This commit is contained in:
parent
cb1f76d018
commit
63ddb4e472
|
@ -170,7 +170,7 @@ Partition* LvmDevice::scanPartition(const QString& lvPath, PartitionTable* pTabl
|
||||||
return part;
|
return part;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** scan and contruct list of initialized LvmDevice objects.
|
/** scan and construct list of initialized LvmDevice objects.
|
||||||
*
|
*
|
||||||
* @return list of initialized LvmDevices
|
* @return list of initialized LvmDevices
|
||||||
*/
|
*/
|
||||||
|
@ -186,7 +186,7 @@ QList<LvmDevice*> LvmDevice::scanSystemLVM()
|
||||||
qint64 LvmDevice::mappedSector(const QString& lvPath, qint64 sector) const
|
qint64 LvmDevice::mappedSector(const QString& lvPath, qint64 sector) const
|
||||||
{
|
{
|
||||||
qint64 mSector = 0;
|
qint64 mSector = 0;
|
||||||
QList<QString> lvpathList = partitionNodes();
|
QStringList lvpathList = partitionNodes();
|
||||||
qint32 devIndex = lvpathList.indexOf(lvPath);
|
qint32 devIndex = lvpathList.indexOf(lvPath);
|
||||||
|
|
||||||
if (devIndex) {
|
if (devIndex) {
|
||||||
|
@ -282,7 +282,7 @@ QString LvmDevice::getUUID(const QString& vgName)
|
||||||
*
|
*
|
||||||
* @param fieldName LVM field name
|
* @param fieldName LVM field name
|
||||||
* @param vgName the name of LVM Volume Group
|
* @param vgName the name of LVM Volume Group
|
||||||
* @return raw output of command output, usully with many spaces within the returned string
|
* @return raw output of command output, usually with many spaces within the returned string
|
||||||
* */
|
* */
|
||||||
|
|
||||||
QString LvmDevice::getField(const QString& fieldName, const QString& vgName)
|
QString LvmDevice::getField(const QString& fieldName, const QString& vgName)
|
||||||
|
|
Loading…
Reference in New Issue