[fsresizer] [partition] Drop special cases for kpmcore 3.3.1
This commit is contained in:
parent
9f0f08b571
commit
3930826e93
@ -61,7 +61,7 @@ ResizeFSJob::PartitionMatch
|
||||
ResizeFSJob::findPartition( CoreBackend* backend )
|
||||
{
|
||||
using DeviceList = QList< Device* >;
|
||||
#ifdef WITH_KPMCORE331API
|
||||
#if defined( WITH_KPMCORE4API )
|
||||
DeviceList devices = backend->scanDevices( /* not includeReadOnly, not includeLoopback */ ScanFlag(0) );
|
||||
#else
|
||||
DeviceList devices = backend->scanDevices( /* excludeReadOnly */ true );
|
||||
|
@ -109,7 +109,7 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize )
|
||||
bool writableOnly = (which == DeviceType::WritableOnly);
|
||||
|
||||
CoreBackend* backend = CoreBackendManager::self()->backend();
|
||||
#ifdef WITH_KPMCORE331API
|
||||
#if defined( WITH_KPMCORE4API )
|
||||
DeviceList devices = backend->scanDevices( /* not includeReadOnly, not includeLoopback */ ScanFlag(0) );
|
||||
#else
|
||||
DeviceList devices = backend->scanDevices( /* excludeReadOnly */ true );
|
||||
|
@ -34,7 +34,7 @@ class Partition;
|
||||
class PartitionNode;
|
||||
class PartitionRole;
|
||||
|
||||
#ifdef WITH_KPMCORE331API
|
||||
#if defined( WITH_KPMCORE4API )
|
||||
#define KPM_PARTITION_FLAG(x) PartitionTable::Flag::x
|
||||
#define KPM_PARTITION_STATE(x) Partition::State::x
|
||||
#define KPM_PARTITION_FLAG_ESP PartitionTable::Flag::Boot
|
||||
|
@ -687,14 +687,9 @@ PartitionCoreModule::scanForLVMPVs()
|
||||
#if defined( WITH_KPMCORE4API )
|
||||
VolumeManagerDevice::scanDevices( physicalDevices );
|
||||
for ( auto p : LVM::pvList::list() )
|
||||
#else
|
||||
#if defined( WITH_KPMCORE331API )
|
||||
LvmDevice::scanSystemLVM( physicalDevices );
|
||||
for ( auto p : LVM::pvList::list() )
|
||||
#else
|
||||
LvmDevice::scanSystemLVM( physicalDevices );
|
||||
for ( auto p : LVM::pvList )
|
||||
#endif
|
||||
#endif
|
||||
{
|
||||
m_lvmPVs << p.partition().data();
|
||||
@ -728,7 +723,7 @@ PartitionCoreModule::scanForLVMPVs()
|
||||
if ( innerFS && innerFS->type() == FileSystem::Type::Lvm2_PV )
|
||||
m_lvmPVs << p;
|
||||
}
|
||||
#ifdef WITH_KPMCORE4API
|
||||
#if defined( WITH_KPMCORE4API )
|
||||
else if ( p->fileSystem().type() == FileSystem::Type::Luks2 )
|
||||
{
|
||||
// Encrypted LVM PVs
|
||||
|
Loading…
Reference in New Issue
Block a user