Skip to content

Commit 8dab6f2

Browse files
committedJul 5, 2018
Added Ceph and Linux encrypted (LUKS and dm-crypt) partition type codes.
1 parent 44cda47 commit 8dab6f2

File tree

4 files changed

+37
-7
lines changed

4 files changed

+37
-7
lines changed
 

‎NEWS

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
1.0.4 (?/??/2018):
2-
------------------
1+
1.0.4 (7/5/2018):
2+
-----------------
33

44
- Added search feature to partition type list functions ("L" on main menu of
55
gdisk and "L" when entered in response to the "Hex code or GUID" prompt in
@@ -19,6 +19,15 @@
1919
- Added type code for Apple APFS (7C3457EF-0000-11AA-AA11-00306543ECAC,
2020
0xaf0a).
2121

22+
- Added type code for Atari TOS basic data (0xa200,
23+
734E5AFE-F61A-11E6-BC64-92361F002671).
24+
25+
- Added type codes for Linux dm-crypt (0x8308,
26+
7FFEC5C9-2D00-49B7-8941-3EA10A5586B7) and LUKS (0x8309,
27+
CA7D7CCB-63ED-4C53-861C-1742536059CC) partitions.
28+
29+
- Added 18 Ceph partition type codes.
30+
2231
- Added 52 (yes, 52!) Android partition type codes.
2332

2433
- Changed "Creating new GPT entries" message to read "Creating new

‎current.spec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Summary: GPT partitioning and MBR repair software
22
Name: gptfdisk
3-
Version: 1.0.3
3+
Version: 1.0.4
44

55
Release: 1%{?dist}
66
License: GPLv2
77
URL: http://www.rodsbooks.com/gdisk
88
Group: Applications/System
9-
Source: http://www.rodsbooks.com/gdisk/gptfdisk-1.0.3.tar.gz
9+
Source: http://www.rodsbooks.com/gdisk/gptfdisk-1.0.4.tar.gz
1010
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
1111

1212
%description
@@ -81,5 +81,5 @@ provides a few additional partition manipulation features.
8181

8282

8383
%changelog
84-
* Thu Jul 27 2017 R Smith <rodsmith@rodsbooks.com> - 1.0.3
85-
- Created spec file for 1.0.3 release
84+
* Thu Jul 5 2018 R Smith <rodsmith@rodsbooks.com> - 1.0.4
85+
- Created spec file for 1.0.4 release

‎parttypes.cc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ void PartType::AddAllTypes(void) {
133133
AddType(0x8305, "B921B045-1DF0-41C3-AF44-4C6F280D3FAE", "Linux ARM64 root (/)"); // Linux / on 64-bit ARM (auto-mounted by systemd)
134134
AddType(0x8306, "3B8F8425-20E0-4F3B-907F-1A25A76F98E8", "Linux /srv"); // Linux /srv (auto-mounted by systemd)
135135
AddType(0x8307, "69DAD710-2CE4-4E3C-B16C-21A1D49ABED3", "Linux ARM32 root (/)"); // Linux / on 32-bit ARM (auto-mounted by systemd)
136+
AddType(0x8308, "7FFEC5C9-2D00-49B7-8941-3EA10A5586B7", "Linux dm-crypt");
137+
AddType(0x8309, "CA7D7CCB-63ED-4C53-861C-1742536059CC", "Linux LUKS");
136138

137139
// Used by Intel Rapid Start technology
138140
AddType(0x8400, "D3BFE2DE-3DAF-11DF-BA40-E3A556D89593", "Intel Rapid Start");
@@ -306,12 +308,31 @@ void PartType::AddAllTypes(void) {
306308
AddType(0xef02, "21686148-6449-6E6F-744E-656564454649", "BIOS boot partition"); // Used by GRUB
307309

308310
// Ceph type codes; see https://github.com/ceph/ceph/blob/9bcc42a3e6b08521694b5c0228b2c6ed7b3d312e/src/ceph-disk#L76-L81
311+
// and Wikipedia
309312
AddType(0xf800, "4FBD7E29-9D25-41B8-AFD0-062C0CEFF05D", "Ceph OSD"); // Ceph Object Storage Daemon
310313
AddType(0xf801, "4FBD7E29-9D25-41B8-AFD0-5EC00CEFF05D", "Ceph dm-crypt OSD"); // Ceph Object Storage Daemon (encrypted)
311314
AddType(0xf802, "45B0969E-9B03-4F30-B4C6-B4B80CEFF106", "Ceph journal");
312315
AddType(0xf803, "45B0969E-9B03-4F30-B4C6-5EC00CEFF106", "Ceph dm-crypt journal");
313316
AddType(0xf804, "89C57F98-2FE5-4DC0-89C1-F3AD0CEFF2BE", "Ceph disk in creation");
314317
AddType(0xf805, "89C57F98-2FE5-4DC0-89C1-5EC00CEFF2BE", "Ceph dm-crypt disk in creation");
318+
AddType(0xf806, "CAFECAFE-9B03-4F30-B4C6-B4B80CEFF106", "Ceph block");
319+
AddType(0xf807, "30CD0809-C2B2-499C-8879-2D6B78529876", "Ceph block DB");
320+
AddType(0xf808, "5CE17FCE-4087-4169-B7FF-056CC58473F9", "Ceph block write-ahead log");
321+
AddType(0xf809, "FB3AABF9-D25F-47CC-BF5E-721D1816496B", "Ceph lockbox for dm-crypt keys");
322+
AddType(0xf80a, "4FBD7E29-8AE0-4982-BF9D-5A8D867AF560", "Ceph multipath OSD");
323+
AddType(0xf80b, "45B0969E-8AE0-4982-BF9D-5A8D867AF560", "Ceph multipath journal");
324+
AddType(0xf80c, "CAFECAFE-8AE0-4982-BF9D-5A8D867AF560", "Ceph multipath block 1");
325+
AddType(0xf80d, "7F4A666A-16F3-47A2-8445-152EF4D03F6C", "Ceph multipath block 2");
326+
AddType(0xf80e, "EC6D6385-E346-45DC-BE91-DA2A7C8B3261", "Ceph multipath block DB");
327+
AddType(0xf80f, "01B41E1B-002A-453C-9F17-88793989FF8F", "Ceph multipath block write-ahead log");
328+
AddType(0xf810, "CAFECAFE-9B03-4F30-B4C6-5EC00CEFF106", "Ceph dm-crypt block");
329+
AddType(0xf811, "93B0052D-02D9-4D8A-A43B-33A3EE4DFBC3", "Ceph dm-crypt block DB");
330+
AddType(0xf812, "306E8683-4FE2-4330-B7C0-00A917C16966", "Ceph dm-crypt block write-ahead log");
331+
AddType(0xf813, "45B0969E-9B03-4F30-B4C6-35865CEFF106", "Ceph dm-crypt LUKS journal");
332+
AddType(0xf814, "CAFECAFE-9B03-4F30-B4C6-35865CEFF106", "Ceph dm-crypt LUKS block");
333+
AddType(0xf815, "166418DA-C469-4022-ADF4-B30AFD37F176", "Ceph dm-crypt LUKS block DB");
334+
AddType(0xf816, "86A32090-3647-40B9-BBBD-38D8C573AA86", "Ceph dm-crypt LUKS block write-ahead log");
335+
AddType(0xf817, "4FBD7E29-9D25-41B8-AFD0-35865CEFF05D", "Ceph dm-crypt LUKS OSD");
315336

316337
// VMWare ESX partition types codes
317338
AddType(0xfb00, "AA31E02A-400F-11DB-9590-000C2911D1B8", "VMWare VMFS");

‎support.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef __GPTSUPPORT
99
#define __GPTSUPPORT
1010

11-
#define GPTFDISK_VERSION "1.0.3"
11+
#define GPTFDISK_VERSION "1.0.4"
1212

1313
#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__)
1414
// Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no lseek64

0 commit comments

Comments
 (0)
Please sign in to comment.