[OpenBIOS] [PATCH 3/10] Don't stop at APPLE_VOID partition
William Hahne
will07c5 at gmail.com
Tue Aug 9 23:54:45 CEST 2011
The void partitions can be occasionally found on Mac OS discs (10.2 for
example.) Previously mac-parts would just stop at the first void partition
meaning it would never try to boot from the HFS partition.
Index: packages/mac-parts.c
===================================================================
--- packages/mac-parts.c (revision 1041)
+++ packages/mac-parts.c (working copy)
@@ -165,9 +165,12 @@
for (parnum = 1; parnum <= __be32_to_cpu(par.pmMapBlkCnt); parnum++) {
SEEK( bs * parnum );
READ( &par, sizeof(par) );
- if( __be16_to_cpu(par.pmSig) != DESC_PART_SIGNATURE ||
- !__be32_to_cpu(par.pmPartBlkCnt) )
+ if( __be16_to_cpu(par.pmSig) != DESC_PART_SIGNATURE) {
break;
+ }
+ if ( !__be32_to_cpu(par.pmPartBlkCnt) ) {
+ continue; /* Just a void partition, ignore it. */
+ }
DPRINTF("found partition type: %s with status %x\n", par.pmPartType,
__be32_to_cpu(par.pmPartStatus));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openbios.org/pipermail/openbios/attachments/20110809/8041498f/attachment.html>
More information about the OpenBIOS
mailing list