[gparted] Add TYPE_UNPARTITIONED partition type (#788308)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Add TYPE_UNPARTITIONED partition type (#788308)
- Date: Tue, 3 Oct 2017 16:35:53 +0000 (UTC)
commit c10d80a2956c688b397ff561ada673b9e9102bee
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Sat Aug 13 12:25:46 2016 +0100
Add TYPE_UNPARTITIONED partition type (#788308)
Just adds the enumeration. Using it will follow.
Bug 788308 - Remove whole_device partition flag
include/Partition.h | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/include/Partition.h b/include/Partition.h
index 0b6ac87..433d771 100644
--- a/include/Partition.h
+++ b/include/Partition.h
@@ -33,10 +33,11 @@ namespace GParted
enum PartitionType {
- TYPE_PRIMARY = 0,
- TYPE_LOGICAL = 1,
- TYPE_EXTENDED = 2,
- TYPE_UNALLOCATED = 3
+ TYPE_PRIMARY = 0, // Primary partition on a partitioned drive
+ TYPE_LOGICAL = 1, // Logical partition on a partitioned drive
+ TYPE_EXTENDED = 2, // Extended partition on a partitioned drive
+ TYPE_UNALLOCATED = 3, // Unallocated space on a partitioned drive
+ TYPE_UNPARTITIONED = 4 // Unpartitioned whole drive
};
enum PartitionStatus {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]