CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2016/01/25 16:43:20
Modified files:
distrib/special/pdisk: Makefile
sbin/pdisk : Makefile dpme.h dump.c file_media.c
file_media.h partition_map.c pdisk.c
Log message:
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.