Subject: Re: partition lookup code
To: Gregory McGarry <g.mcgarry@ieee.org>
From: None <itojun@iijlab.net>
List: tech-kern
Date: 06/19/2002 10:58:32
>> 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.
itojun