Subject: Re: disk partitioning
To: Bruce Evans <bde@zeta.org.au>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-i386
Date: 12/06/1996 18:51:40
On Sat, 7 Dec 1996 13:28:27 +1100 
 Bruce Evans <bde@zeta.org.au> wrote:

 > >In NetBSD?!  Umm, probably not... we have a couple of ports that have
 > >MAXPARTITIONS == 16 (amiga, mac68k, others?) and they work fine.
 > 
 > dk_openmask has (sizeof(int) * CHAR_BIT) implicitly hard-coded.

Right ... there is that... so, you're essentially stuck with 32 unless
this changes...

This actually wouldn't be that hard to fix... essentially, make
the openmasks pointers to arrays of ints, dynamically allocated
in disk_attach() (and freed in disk_detach()), and then have a
collection of functions designed to manipulate the masks.  Simple,
but annoying.  :-)

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939