diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c index d4d74465ebd9..cef7466c6cc7 100644 --- a/sys/geom/geom_mbr.c +++ b/sys/geom/geom_mbr.c @@ -149,7 +149,7 @@ g_mbr_modify(struct g_geom *gp, struct g_mbr_softc *ms, u_char *sec0) * partitions to be present in the MBR. A PMBR will * be handled correctly anyway. */ - if (dp[i].dp_typ == 0xee) + if (dp[i].dp_typ == DOSPTYP_PMBR) l[i] = 0; else if (dp[i].dp_flag != 0 && dp[i].dp_flag != 0x80) l[i] = 0; diff --git a/sys/sys/diskmbr.h b/sys/sys/diskmbr.h index 79b9d1b0c93e..e2aaafc0e714 100644 --- a/sys/sys/diskmbr.h +++ b/sys/sys/diskmbr.h @@ -46,6 +46,7 @@ #define DOSPTYP_386BSD 0xa5 /* 386BSD partition type */ #define DOSPTYP_LINSWP 0x82 /* Linux swap partition */ #define DOSPTYP_LINUX 0x83 /* Linux partition */ +#define DOSPTYP_PMBR 0xee /* GPT Protective MBR */ #define DOSPTYP_EXT 5 /* DOS extended partition */ #define DOSPTYP_EXTLBA 15 /* DOS extended partition */