Add PMUtils::isPartitionNew()
This commit is contained in:
parent
091c3c2757
commit
fa30fe147f
@ -30,4 +30,9 @@ bool isPartitionFreeSpace( Partition* partition )
|
||||
return partition->roles().has( PartitionRole::Unallocated );
|
||||
}
|
||||
|
||||
bool isPartitionNew( Partition* partition )
|
||||
{
|
||||
return partition->state() == Partition::StateNew;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
@ -25,6 +25,8 @@ namespace PMUtils
|
||||
|
||||
bool isPartitionFreeSpace( Partition* );
|
||||
|
||||
bool isPartitionNew( Partition* );
|
||||
|
||||
}
|
||||
|
||||
#endif /* PMUTILS_H */
|
||||
|
Loading…
Reference in New Issue
Block a user