Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



In article <20030707151319.T629%snowdrop.l8s.co.uk@localhost>
david%l8s.co.uk@localhost wrote:

> AFAICT that '2' is the only place where anything looks at the
> 'MBR_PARTITION' and that means that i386 can't have RAW_PART == 2.
> (Dare we change it?)

But I think bounds_check_with_label() is the only kernel function
that uses '2' to look at the "NetBSD partition" in MBR partitoin.
readdisklabel() and writedisklabel() use "dospartoff" which is
extracted from MBR partition. Of cource we should also fix
disklabel(8) command, but it should be trivial.

> I also haven't actually made any other ports use the code (yet).

But if you want to put the code into MI place, we should define
proper APIs first. There are many machine depedent partition
structures other than MBR. (see hp700/hp700/disksubr.c for example)
---
Izumi Tsutsui
tsutsui%ceres.dti.ne.jp@localhost



Home | Main Index | Thread Index | Old Index