[partition] Fixing LVM scanning according to new kpmcore API
This commit is contained in:
parent
4caa401a07
commit
34e091833d
@ -55,6 +55,7 @@
|
|||||||
#include <kpmcore/core/device.h>
|
#include <kpmcore/core/device.h>
|
||||||
#include <kpmcore/core/lvmdevice.h>
|
#include <kpmcore/core/lvmdevice.h>
|
||||||
#include <kpmcore/core/partition.h>
|
#include <kpmcore/core/partition.h>
|
||||||
|
#include <kpmcore/core/volumemanagerdevice.h>
|
||||||
#include <kpmcore/backend/corebackend.h>
|
#include <kpmcore/backend/corebackend.h>
|
||||||
#include <kpmcore/backend/corebackendmanager.h>
|
#include <kpmcore/backend/corebackendmanager.h>
|
||||||
#include <kpmcore/fs/filesystemfactory.h>
|
#include <kpmcore/fs/filesystemfactory.h>
|
||||||
@ -686,12 +687,13 @@ PartitionCoreModule::scanForLVMPVs()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update LVM::pvList
|
|
||||||
LvmDevice::scanSystemLVM( physicalDevices );
|
|
||||||
|
|
||||||
#ifdef WITH_KPMCOREGT33
|
#ifdef WITH_KPMCOREGT33
|
||||||
|
VolumeManagerDevice::scanDevices( physicalDevices );
|
||||||
|
|
||||||
for ( auto p : LVM::pvList::list() )
|
for ( auto p : LVM::pvList::list() )
|
||||||
#else
|
#else
|
||||||
|
LvmDevice::scanSystemLVM( physicalDevices );
|
||||||
|
|
||||||
for ( auto p : LVM::pvList )
|
for ( auto p : LVM::pvList )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user