[partition] Prepare scanDevices for post-KPMCore 3.3.0

This commit is contained in:
Adriaan de Groot 2019-03-20 16:46:10 +01:00
parent 68f29ebf20
commit e8c18c0b5c

View File

@ -107,7 +107,11 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize )
bool writableOnly = (which == DeviceType::WritableOnly);
CoreBackend* backend = CoreBackendManager::self()->backend();
DeviceList devices = backend->scanDevices( true );
#ifdef WITH_KPMCOREGT33
DeviceList devices = backend->scanDevices( /* not includeReadOnly, not includeLoopback */ ScanFlag(0) );
#else
DeviceList devices = backend->scanDevices( /* excludeReadOnly */ true );
#endif
#ifdef DEBUG_PARTITION_UNSAFE
cWarning() << "Allowing unsafe partitioning choices." << devices.count() << "candidates.";