Add apple-boot, apple-hfs and apple-ufs aliases to MBR scheme.
Sort DOSPTYP_* entries in diskmbr.h by value. Document these scheme-specific types in gpart(8). MFC after: 1 week
This commit is contained in:
parent
ca887f8d07
commit
4b8d4f97b0
@ -24,7 +24,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd March 12, 2015
|
||||
.Dd May 5, 2015
|
||||
.Dt GPART 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -668,6 +668,8 @@ for GPT.
|
||||
.It Cm apple-hfs
|
||||
An Apple Mac OS X partition that contains a HFS or HFS+ filesystem.
|
||||
The scheme-specific types are
|
||||
.Qq Li "!175"
|
||||
for MBR,
|
||||
.Qq Li "!Apple_HFS"
|
||||
for APM and
|
||||
.Qq Li "!48465300-0000-11aa-aa11-00306543ecac"
|
||||
@ -696,6 +698,8 @@ for GPT.
|
||||
.It Cm apple-ufs
|
||||
An Apple Mac OS X partition that contains a UFS filesystem.
|
||||
The scheme-specific types are
|
||||
.Qq Li "!168"
|
||||
for MBR,
|
||||
.Qq Li "!Apple_UNIX_SVR2"
|
||||
for APM and
|
||||
.Qq Li "!55465300-0000-11aa-aa11-00306543ecac"
|
||||
|
@ -138,6 +138,9 @@ static struct g_part_mbr_alias {
|
||||
{ DOSPTYP_PPCBOOT, G_PART_ALIAS_PREP_BOOT },
|
||||
{ DOSPTYP_VMFS, G_PART_ALIAS_VMFS },
|
||||
{ DOSPTYP_VMKDIAG, G_PART_ALIAS_VMKDIAG },
|
||||
{ DOSPTYP_APPLE_UFS, G_PART_ALIAS_APPLE_UFS },
|
||||
{ DOSPTYP_APPLE_BOOT, G_PART_ALIAS_APPLE_BOOT },
|
||||
{ DOSPTYP_HFS, G_PART_ALIAS_APPLE_HFS },
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -51,11 +51,13 @@
|
||||
#define DOSPTYP_EXTLBA 0x0f /* DOS extended partition */
|
||||
#define DOSPTYP_PPCBOOT 0x41 /* PReP/CHRP boot partition */
|
||||
#define DOSPTYP_LDM 0x42 /* Win2k dynamic extended partition */
|
||||
#define DOSPTYP_386BSD 0xa5 /* 386BSD partition type */
|
||||
#define DOSPTYP_HFS 0xaf /* HFS/HFS+ partition type */
|
||||
#define DOSPTYP_LINSWP 0x82 /* Linux swap partition */
|
||||
#define DOSPTYP_LINUX 0x83 /* Linux partition */
|
||||
#define DOSPTYP_LINLVM 0x8e /* Linux LVM partition */
|
||||
#define DOSPTYP_386BSD 0xa5 /* 386BSD partition type */
|
||||
#define DOSPTYP_APPLE_UFS 0xa8 /* Apple Mac OS X boot */
|
||||
#define DOSPTYP_APPLE_BOOT 0xab /* Apple Mac OS X UFS */
|
||||
#define DOSPTYP_HFS 0xaf /* HFS/HFS+ partition type */
|
||||
#define DOSPTYP_PMBR 0xee /* GPT Protective MBR */
|
||||
#define DOSPTYP_EFI 0xef /* EFI FAT parition */
|
||||
#define DOSPTYP_VMFS 0xfb /* VMware VMFS partition */
|
||||
|
Loading…
Reference in New Issue
Block a user