<br><br><div class="gmail_quote">On Wed, Aug 10, 2011 at 5:50 AM, Mark Cave-Ayland <span dir="ltr"><<a href="mailto:mark.cave-ayland@siriusit.co.uk">mark.cave-ayland@siriusit.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 09/08/11 22:54, William Hahne wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The void partitions can be occasionally found on Mac OS discs (10.2 for<br>
example.) Previously mac-parts would just stop at the first void<br>
partition meaning it would never try to boot from the HFS partition.<br>
<br>
Index: packages/mac-parts.c<br>
==============================<u></u>==============================<u></u>=======<br>
--- packages/mac-parts.c (revision 1041)<br>
+++ packages/mac-parts.c (working copy)<br>
@@ -165,9 +165,12 @@<br>
for (parnum = 1; parnum <= __be32_to_cpu(par.pmMapBlkCnt)<u></u>; parnum++) {<br>
SEEK( bs * parnum );<br>
READ( &par, sizeof(par) );<br>
- if( __be16_to_cpu(par.pmSig) != DESC_PART_SIGNATURE ||<br>
-                            !__be32_to_cpu(par.<u></u>pmPartBlkCnt) )<br>
+ if( __be16_to_cpu(par.pmSig) != DESC_PART_SIGNATURE) {<br>
break;<br>
+ }<br>
+ if ( !__be32_to_cpu(par.<u></u>pmPartBlkCnt) ) {<br>
+ continue; /* Just a void partition, ignore it. */<br>
+ }<br>
DPRINTF("found partition type: %s with status %x\n", par.pmPartType,<br>
__be32_to_cpu(par.<u></u>pmPartStatus));<br>
</blockquote>
<br></div></div>
Same as my comment for patch 2/10.<br>
<br></blockquote><div><br></div><div><div>This was also found through testing although I would assume it is documented. If you have a 10.2 disc (or I would assume most other early Mac OS X discs) lying around you can look at the partition table and see the void partitions.</div>
<div><br></div><div>William Hahne </div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
ATB,<br>
<br>
Mark.<br>
<br>
-- <br>
Mark Cave-Ayland - Senior Technical Architect<br>
PostgreSQL - PostGIS<br>
Sirius Corporation plc - control through freedom<br>
<a href="http://www.siriusit.co.uk" target="_blank">http://www.siriusit.co.uk</a><br>
t: <a href="tel:%2B44%20870%20608%200063" value="+448706080063" target="_blank">+44 870 608 0063</a><br>
<br>
Sirius Labs: <a href="http://www.siriusit.co.uk/labs" target="_blank">http://www.siriusit.co.uk/labs</a><br><font color="#888888">
<br>
-- <br>
OpenBIOS                 <a href="http://openbios.org/" target="_blank">http://openbios.org/</a><br>
Mailinglist:  <a href="http://lists.openbios.org/mailman/listinfo" target="_blank">http://lists.openbios.org/<u></u>mailman/listinfo</a><br>
Free your System - May the Forth be with you<br></font></blockquote><div><br></div><div><br></div><div><br></div></div><br>