mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-24 07:58:22 -04:00
Detect free space using the FS type
This commit is contained in:
parent
c254fe0b2a
commit
3a59cdeda9
1 changed files with 2 additions and 2 deletions
|
@ -20,14 +20,14 @@
|
|||
|
||||
// CalaPM
|
||||
#include <core/partition.h>
|
||||
#include <fs/filesystem.h>
|
||||
|
||||
namespace PMUtils
|
||||
{
|
||||
|
||||
bool isPartitionFreeSpace( Partition* partition )
|
||||
{
|
||||
// FIXME: Check FS type instead
|
||||
return partition->partitionPath().isEmpty();
|
||||
return partition->fileSystem().type() == FileSystem::Unknown;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue