#780: check for isMounted(), not for where-would-it-be-mounted

This commit is contained in:
Adriaan de Groot 2017-08-28 05:54:04 -04:00 committed by Philip
parent 47347c77fa
commit 5100f32ebe

View File

@ -58,7 +58,7 @@ isMounted( Device* device )
cDebug() << "Checking for mounted partitions in" << device->deviceNode();
for ( auto it = PartitionIterator::begin( device ); it != PartitionIterator::end( device ); ++it )
{
if ( ! ( *it )->mountPoint().isEmpty() )
if ( ! ( *it )->isMounted() )
{
cDebug() << " .." << ( *it )->partitionPath() << "is mounted on" << ( *it )->mountPoint();
return true;