summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-03 18:55:16 +0000
committerphk <phk@FreeBSD.org>2003-04-03 18:55:16 +0000
commit3288c86f742dd0658a4e8cb0dc6e5ebbab94fcd0 (patch)
tree9bbb65b30356bf3f7513a196c3b728789f8992a0
parentaca72a7a77a602e7e160b91c98fd6d8e40eaf6f7 (diff)
downloadFreeBSD-src-3288c86f742dd0658a4e8cb0dc6e5ebbab94fcd0.zip
FreeBSD-src-3288c86f742dd0658a4e8cb0dc6e5ebbab94fcd0.tar.gz
Add #define for DOSPTYP_PMBR, and use it.
-rw-r--r--sys/geom/geom_mbr.c2
-rw-r--r--sys/sys/diskmbr.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c
index d4d7446..cef7466 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 79b9d1b..e2aaafc 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 */
OpenPOWER on IntegriCloud