summaryrefslogtreecommitdiff
path: root/distrib/special/pdisk
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-01-25 23:43:21 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-01-25 23:43:21 +0000
commitf02e582a205fd6160d900af38ea06133ebd6e886 (patch)
treee0261a513607d587b2182c517df34b2af801ddb5 /distrib/special/pdisk
parenteafb7020b9a54c63dd1305c97ed2e2806fb889d0 (diff)
Use new read/write_block0 and read/write_dpme which handle any
endian or alignment issues forcefully. Removes need for convert_* functions so unhook convert.c from build. read/write_block become static functions inside file_media.c. Tweak struct block0 to stop trying to handle alignment issues by clever declaration. Rely on the new functions to accurately translate between on-disk and in-memory layouts. Enables pdisk to work on amd64 and likely other architectures if it's ever desirable. Does bring back DEV_BSIZE to pdisk.c since the in-memory structure will *not* be 512 bytes on other archs.
Diffstat (limited to 'distrib/special/pdisk')
-rw-r--r--distrib/special/pdisk/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/special/pdisk/Makefile b/distrib/special/pdisk/Makefile
index 11bcb0eb098..daa42c4574b 100644
--- a/distrib/special/pdisk/Makefile
+++ b/distrib/special/pdisk/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.8 2016/01/18 03:10:16 deraadt Exp $
+# $Id: Makefile,v 1.9 2016/01/25 23:43:20 krw Exp $
.if ${MACHINE} == "macppc"
PROG= pdisk
@@ -6,7 +6,7 @@ LDADD= -lutil
DPADD= ${LIBUTIL}
CFLAGS+=-Wall
-SRCS= convert.c dump.c \
+SRCS= dump.c \
file_media.c io.c partition_map.c \
pdisk.c validate.c