Detect free space using the FS type

This commit is contained in:
Aurélien Gâteau 2014-06-30 16:16:47 +02:00
parent c254fe0b2a
commit 3a59cdeda9

View file

@ -20,14 +20,14 @@
// CalaPM // CalaPM
#include <core/partition.h> #include <core/partition.h>
#include <fs/filesystem.h>
namespace PMUtils namespace PMUtils
{ {
bool isPartitionFreeSpace( Partition* partition ) bool isPartitionFreeSpace( Partition* partition )
{ {
// FIXME: Check FS type instead return partition->fileSystem().type() == FileSystem::Unknown;
return partition->partitionPath().isEmpty();
} }
} // namespace } // namespace