From owner-freebsd-hackers Fri Jan 3 02:23:19 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA11949 for hackers-outgoing; Fri, 3 Jan 1997 02:23:19 -0800 (PST) Received: from hda.hda.com (ip81-max1-fitch.ziplink.net [199.232.245.81]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id CAA11944 for ; Fri, 3 Jan 1997 02:23:13 -0800 (PST) Received: (from dufault@localhost) by hda.hda.com (8.6.12/8.6.12) id FAA24116; Fri, 3 Jan 1997 05:19:12 -0500 From: Peter Dufault Message-Id: <199701031019.FAA24116@hda.hda.com> Subject: Re: more than 32 disks? In-Reply-To: <199701030430.XAA20956@crh.cl.msu.edu> from Charles Henrich at "Jan 2, 97 11:30:08 pm" To: henrich@crh.cl.msu.edu (Charles Henrich) Date: Fri, 3 Jan 1997 05:19:11 -0500 (EST) Cc: dg@root.com, freebsd-hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Oh yeah, I forgot to reply to your message to me about this. The answer for > > wcarchive is that we only have 3 controllers - 0-2, so I haven't been faced > > with an sd3 problem yet. :-) It looks like there are only 5 bits for the > > unit number. This means that one will have to make driver changes to go > > beyond 32 units. :-( > > Hmm. The system boot appears to assign the sd32 device just peachy, just > MAKEDEV dying. I wonder what the adaptec driver is doing, guess its time to > scrounge around in code. The scsiconf code is incrementing the unit number without checking if it exceeded the space allocated in the minor number. I think the driver would be functional if you could get into it. The unit number is encoded using "dkunit" so the change has to be made there. See the alert about adding "dkmodunit". May as well fix DK_NDRIVE at the same time. Look in sys/scsi/sd.c for the disk minor number setup. -- Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936