Subject: Re: disklabel(8) and machdep on-disk structures issues
To: None <bouyer@antioche.lip6.fr>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-kern
Date: 11/01/2003 00:09:37
In article <20031031113955.GB653@antioche.lip6.fr>
bouyer@antioche.lip6.fr wrote:

> For sparc, the NetBSD disklabel is embeded in the sun disklabel in some
> free space (sun3 could probably do it as well), and DIOCWDINFO always write
> a sun disklabel and a NetBSD disklabel.
> 
> My conclusions are:
> - sun3 should probably write a NetBSD disklabel inside the sun disklabel,
>   just as sparc does. BTW, sun3 and sparc could probably share the same
>   disksubr.c (I didn't look at sparc64 and sun2 yet).
> - the #ifdef __sparc__ in disklabel(8) can probably go away, as sun3 works
>   without it.

LABELOFFSET on sparc was changed to 128 to make space of BSD disklabel:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sparc/include/disklabel.h#rev1.5

i.e. sparc and sun3 have different disklabel structure on NetBSD.
(see port-sparc/6325 for details)
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp