#780: check for isMounted(), not for where-would-it-be-mounted
This commit is contained in:
parent
47347c77fa
commit
5100f32ebe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user