Subject: Re: /usr/mdec is a headache for shared ports
To: None <>
From: Noriyuki Soda <>
List: tech-userlevel
Date: 06/08/2000 17:10:33
> > The only significant difference between the user land portions
> > of the pmax, cobalt, and hpcmips ports (all little-endian 32bit
> > mips) is /usr/mdec.  (this is also true of macppc, ofppc, prep
> > ports)
> There is also the problem that some mips ports have MAXPARTIONS 8 and
> some 16, which changes the size of struct disklabel and so also the
> DIOC* ioctls.

This can be fixed by using MAXMAXPARTITIONS as structure size,
and using sysctl(3) kern.maxpartitions as actual size for ioctl
interface. (not only disklabel command, but also libc and other
programs should be fixed)

But there is another problem. Currently, cobalt, hpcmips and arc port
handle MBR (PC-style) partition table, but pmax port doesn't.
So, disklabel binary cannot be shared, even if the MAXPARTITIONS
problem is fixed, since this feature is compiled in to disklabel
binary (by #ifdef, currently).