Cleanup/rejig GPT code to be more readable, support different endian
authorkrw <krw@openbsd.org>
Sat, 9 May 2015 17:11:26 +0000 (17:11 +0000)
committerkrw <krw@openbsd.org>
Sat, 9 May 2015 17:11:26 +0000 (17:11 +0000)
commit7437347a16e79051cd7b2989084b03c1729afff8
treee21ba2879995b86028a065ab030e9aaae1852cbf
parent0a64bdd0db2fc3c8c7d7eff4441642f262a58617
Cleanup/rejig GPT code to be more readable, support different endian
archs and different sized disk sectors. Make MBR have higher priority
than GPT. Add many paranoia checks and associated DPRINTF's to make
further development easier. Keep everything hidden behind #ifdef
GPT.

Tested and ok doug@ mpi@. Nothing bad seen by millert@.
sys/arch/amd64/amd64/disksubr.c
sys/arch/i386/i386/disksubr.c
sys/kern/subr_disk.c
sys/sys/disklabel.h