Subject: Re: x86 boot/root wedge identification
To: Daniel Carosone <dan@geek.com.au>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 10/20/2004 05:35:40
--Apple-Mail-17--290543349
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Oct 19, 2004, at 11:22 PM, Daniel Carosone wrote:

> On Tue, Oct 19, 2004 at 05:01:19PM -0700, Jason Thorpe wrote:
>> While this means passing in a lot more data to the kernel, it means 
>> you
>> can match disklabel information and GPT GUIDs without having to
>> actually parse that info in machine-dependent code.
>
> If size is a concern, perhaps you could pass a hash of the sector to
> match against, before handing that sector on to label-reading code?

For this, the label-reading code is not involved, as it would have 
already run.

But, an MD5 hash of the sector is a pretty good idea ... the i386 boot 
loader already includes MD5 (for passwords), right?  That would make 
the bootinfo structure in question a lot smaller, for sure.

         -- Jason R. Thorpe <thorpej@shagadelic.org>


--Apple-Mail-17--290543349
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFBdlugOpVKkaBm8XkRAkLyAJ42J8rZ7n9Lol+JKiMCdl5+ZxjBBQCfXCMU
ZYvbdgajRF8jTB46Rr5zgTc=
=8OxS
-----END PGP SIGNATURE-----

--Apple-Mail-17--290543349--