Subject: Re: partition lookup code
To: None <itojun@iijlab.net>
From: Gregory McGarry <g.mcgarry@ieee.org>
List: tech-kern
Date: 06/19/2002 16:49:00
itojun@iijlab.net wrote:
> >> sys/arch/*/*/disksubr.c contains very similar code for:
> >> - searching disklabel on DOS MBR partition
> >> - searching disklabel on specific location
> >> (location varies by platform)
> >> - some other disklabel lookup function
> >>
> >> i'm wondering if someone have made these functions MI...
>
> >I haven't done it, but I agree with you. I was thinking of
> >making the code MI and specifying in MD header files which
> >partition-grovelling routines to consider. I considered doing
> >this to get my hp300 disks to work on i386. In the end I
> >didn't have too, since I could place both disklabels on the
> >disk without trouble.
>
> it looks to me sys/arch/hp700/hp700/disklabel.c is the most generic
> and covers a lot of cases (including endian swapping!). i think it
> good to start from it.
Yeah, that's what I was trying to say. Let's do it.
-- Gregory McGarry <g.mcgarry@ieee.org>