Subject: Re: disklabel(8) and machdep on-disk structures issues
To: Robert Elz <kre@munnari.OZ.AU>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 11/12/2003 09:15:34
--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 12, 2003 at 03:16:47AM +0700, Robert Elz wrote:
>     Date:        Tue, 11 Nov 2003 11:35:19 -0800
>     From:        Bill Studenmund <wrstuden@NetBSD.org>
>     Message-ID:  <20031111193519.GA12850@netbsd.org>
>=20
>   | Luke, you're assuming the two can coexist. Apple partition maps take =
up=3D20
>   | enough space in each block that we can't fit a NetBSD disklabel in=3D=
20
>   | there(*).
>=20
> This may seem weird, but can't the NetBSD label just go in some
> other block?   There must be some blocks on the drive that NetBSD
> can write in, or no-one would want a NetBSD label there in the
> first place.

Because there is no other block. :-|

The Apple Partition Map has "driver info" data and some other data in=20
block 0, and then blocks 1 through n (usually 64 or 100) are the partition=
=20
map. Each block in the partition map describes a partition on the disk,=20
and every block on the disk is in exactly one partition. Somewhere in the=
=20
partition map is a partition entry (block) that describes the partition=20
map.

Take care,

Bill

--cNdxnHkX5QqsyA0e
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE/smq2Wz+3JHUci9cRArGxAJ4/u0up0D/4/RuxTfelFc4XRXDWRACeMp07
CqN/PYUFcRMpOMhScjygUEI=
=S2Ph
-----END PGP SIGNATURE-----

--cNdxnHkX5QqsyA0e--