summaryrefslogtreecommitdiff
path: root/sbin/pdisk/partition_map.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-01-30 17:21:11 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-01-30 17:21:11 +0000
commitb2770712b5dfd9b229ba6274aa7df26d1846e345 (patch)
tree2465d2e04a375d7244439f402d818b031d9e1932 /sbin/pdisk/partition_map.h
parentd839feb217819b60108681faa44f10dbf7dd255d (diff)
Move last three lines (#define's) from dpme.h to partition_map.h and
tweak #include's as necessary.
Diffstat (limited to 'sbin/pdisk/partition_map.h')
-rw-r--r--sbin/pdisk/partition_map.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/pdisk/partition_map.h b/sbin/pdisk/partition_map.h
index 33be0db7426..1c30bfaaf1b 100644
--- a/sbin/pdisk/partition_map.h
+++ b/sbin/pdisk/partition_map.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: partition_map.h,v 1.37 2016/01/30 17:09:11 krw Exp $ */
+/* $OpenBSD: partition_map.h,v 1.38 2016/01/30 17:21:10 krw Exp $ */
/*
* partition_map.h - partition map routines
@@ -30,6 +30,11 @@
#ifndef __partition_map__
#define __partition_map__
+#define BLOCK0_SIGNATURE 0x4552 /* 'ER' */
+#define DPME_SIGNATURE 0x504D /* 'PM' */
+
+#define DPISTRLEN 32
+
struct ddmap {
uint32_t ddBlock; /* 1st driver's starting sbBlkSize block */
uint16_t ddSize; /* size of 1st driver (512-byte blks) */