diff --git a/src/modules/partition/PMUtils.cpp b/src/modules/partition/PMUtils.cpp index 43c98be45..49433a9f0 100644 --- a/src/modules/partition/PMUtils.cpp +++ b/src/modules/partition/PMUtils.cpp @@ -30,4 +30,9 @@ bool isPartitionFreeSpace( Partition* partition ) return partition->roles().has( PartitionRole::Unallocated ); } +bool isPartitionNew( Partition* partition ) +{ + return partition->state() == Partition::StateNew; +} + } // namespace diff --git a/src/modules/partition/PMUtils.h b/src/modules/partition/PMUtils.h index 3c7d63dca..2b0f42237 100644 --- a/src/modules/partition/PMUtils.h +++ b/src/modules/partition/PMUtils.h @@ -25,6 +25,8 @@ namespace PMUtils bool isPartitionFreeSpace( Partition* ); +bool isPartitionNew( Partition* ); + } #endif /* PMUTILS_H */