diff options
author | Roderick W. Smith <rodsmith@rodsbooks.com> | 2014-03-22 16:08:00 -0400 |
---|---|---|
committer | Roderick W. Smith <rodsmith@rodsbooks.com> | 2014-03-22 16:08:00 -0400 |
commit | 1a65132980bfef8f9c898afbefcda00277b5ee48 (patch) | |
tree | c94a991bb01f1f9842eb8c9de8bc5129ba41a304 | |
parent | 946866e68b12d345e1f60681d57b93ece0ae8b7e (diff) | |
download | sgdisk-1a65132980bfef8f9c898afbefcda00277b5ee48.tar.gz |
New type codes for Ceph and systemd/Linux
-rw-r--r-- | NEWS | 20 | ||||
-rw-r--r-- | parttypes.cc | 13 | ||||
-rw-r--r-- | support.h | 2 |
3 files changed, 34 insertions, 1 deletions
@@ -1,3 +1,23 @@ +0.8.11 (?/?/2014): +------------------ + +- Added new partition type codes for Ceph + (https://github.com/ceph/ceph/blob/9bcc42a3e6b08521694b5c0228b2c6ed7b3d312e/src/ceph-disk#L76-L81): + 4FBD7E29-9D25-41B8-AFD0-062C0CEFF05D/0xf800 (Ceph OSD), + 4FBD7E29-9D25-41B8-AFD0-5EC00CEFF05D/0xf801 (Ceph dm-crypt OSD), + BFBFAFE7-A34F-448A-9A5B-6213EB736C22/0xf802 (Ceph journal), + 45B0969E-9B03-4F30-B4C6-5EC00CEFF106/0xf803 (Ceph dm-crypt journal), + 89C57F98-2FE5-4DC0-89C1-F3AD0CEFF2BE/0xf804 (Ceph disk in creation), and + 89C57F98-2FE5-4DC0-89C1-5EC00CEFF2BE/0xf805 (Ceph dm-crypt disk in + creation) + +- Added new partition type codes from + http://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/: + 44479540-F297-41B2-9AF7-D131D5F0458A/0x8303 (Linux / on x86), + 4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709/0x8304 (Linux / on x86-64), + B921B045-1DF0-41C3-AF44-4C6F280D3FAE/0x8305 (Linux / on 64-bit ARM), + 3B8F8425-20E0-4F3B-907F-1A25A76F98E8/0x8306 (Linux /srv). + 0.8.10 (3/2/2014): ------------------ diff --git a/parttypes.cc b/parttypes.cc index 1745b76..fef8629 100644 --- a/parttypes.cc +++ b/parttypes.cc @@ -122,7 +122,12 @@ void PartType::AddAllTypes(void) { AddType(0x8300, "0FC63DAF-8483-4772-8E79-3D69D8477DE4", "Linux filesystem"); // Linux native AddType(0x8301, "8DA63339-0007-60C0-C436-083AC8230908", "Linux reserved"); // See http://www.freedesktop.org/software/systemd/man/systemd-gpt-auto-generator.html + // and http://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/ AddType(0x8302, "933AC7E1-2EB4-4F13-B844-0E14E2AEF915", "Linux /home"); // Linux /home (auto-mounted by systemd) + AddType(0x8303, "44479540-F297-41B2-9AF7-D131D5F0458A", "Linux x86 root (/)"); // Linux / on x86 (auto-mounted by systemd) + AddType(0x8304, "4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709", "Linux x86-64 root (/)"); // Linux / on x86-64 (auto-mounted by systemd) + AddType(0x8305, "B921B045-1DF0-41C3-AF44-4C6F280D3FAE", "Linux ARM64 root (/)"); // Linux / on 64-bit ARM (auto-mounted by systemd) + AddType(0x8306, "3B8F8425-20E0-4F3B-907F-1A25A76F98E8", "Linux /srv"); // Linux /srv (auto-mounted by systemd) // Used by Intel Rapid Start technology AddType(0x8400, "D3BFE2DE-3DAF-11DF-BA40-E3A556D89593", "Intel Rapid Start"); @@ -205,6 +210,14 @@ void PartType::AddAllTypes(void) { AddType(0xef01, "024DEE41-33E7-11D3-9D69-0008C781F39F", "MBR partition scheme"); // Used to nest MBR in GPT AddType(0xef02, "21686148-6449-6E6F-744E-656564454649", "BIOS boot partition"); // Used by GRUB + // Ceph type codes; see https://github.com/ceph/ceph/blob/9bcc42a3e6b08521694b5c0228b2c6ed7b3d312e/src/ceph-disk#L76-L81 + AddType(0xf800, "4FBD7E29-9D25-41B8-AFD0-062C0CEFF05D", "Ceph OSD"); // Ceph Object Storage Daemon + AddType(0xf801, "4FBD7E29-9D25-41B8-AFD0-5EC00CEFF05D", "Ceph dm-crypt OSD"); // Ceph Object Storage Daemon (encrypted) + AddType(0xf802, "BFBFAFE7-A34F-448A-9A5B-6213EB736C22", "Ceph journal"); + AddType(0xf803, "45B0969E-9B03-4F30-B4C6-5EC00CEFF106", "Ceph dm-crypt journal"); + AddType(0xf804, "89C57F98-2FE5-4DC0-89C1-F3AD0CEFF2BE", "Ceph disk in creation"); + AddType(0xf805, "89C57F98-2FE5-4DC0-89C1-5EC00CEFF2BE", "Ceph dm-crypt disk in creation"); + // VMWare ESX partition types codes AddType(0xfb00, "AA31E02A-400F-11DB-9590-000C2911D1B8", "VMWare VMFS"); AddType(0xfb01, "9198EFFC-31C0-11DB-8F78-000C2911D1B8", "VMWare reserved"); @@ -8,7 +8,7 @@ #ifndef __GPTSUPPORT #define __GPTSUPPORT -#define GPTFDISK_VERSION "0.8.10" +#define GPTFDISK_VERSION "0.8.10.1" #if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__) // Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no lseek64 |