Having a mounted partition should not disqualify the entire device.

FIXES #780
(should reopen #639 for double-checking)
This commit is contained in:
Adriaan de Groot 2017-08-28 06:01:11 -04:00 committed by Philip
parent 5100f32ebe
commit a776284dfa

View File

@ -52,8 +52,9 @@ hasRootPartition( Device* device )
return false;
}
/* Unused */
static bool
isMounted( Device* device )
hasMountedPartitions( Device* device )
{
cDebug() << "Checking for mounted partitions in" << device->deviceNode();
for ( auto it = PartitionIterator::begin( device ); it != PartitionIterator::end( device ); ++it )
@ -128,8 +129,7 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize )
}
else if ( writableOnly && (
hasRootPartition( *it ) ||
isIso9660( *it ) ||
isMounted( *it ) )
isIso9660( *it ) )
)
{
cDebug() << " .. Removing" << it;