Better way to detect free space

This commit is contained in:
Aurélien Gâteau 2014-07-01 16:29:00 +02:00
parent bd44729328
commit cdfb890e17

View File

@ -27,7 +27,7 @@ namespace PMUtils
bool isPartitionFreeSpace( Partition* partition ) bool isPartitionFreeSpace( Partition* partition )
{ {
return partition->fileSystem().type() == FileSystem::Unknown; return partition->roles().has( PartitionRole::Unallocated );
} }
} // namespace } // namespace