From owner-freebsd-questions Sun Dec 29 16:17:02 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA20685 for questions-outgoing; Sun, 29 Dec 1996 16:17:02 -0800 (PST) Received: from hda.hda.com (ip68-max1-fitch.ziplink.net [199.232.245.68]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id QAA20678 for ; Sun, 29 Dec 1996 16:16:57 -0800 (PST) Received: (from dufault@localhost) by hda.hda.com (8.6.12/8.6.12) id TAA16547; Sun, 29 Dec 1996 19:13:13 -0500 From: Peter Dufault Message-Id: <199612300013.TAA16547@hda.hda.com> Subject: Re: minor for sdXY naming convention ? (mknod,scsi) In-Reply-To: <199612282220.RAA01348@crh.cl.msu.edu> from Charles Henrich at "Dec 28, 96 05:20:54 pm" To: henrich@crh.cl.msu.edu (Charles Henrich) Date: Sun, 29 Dec 1996 19:13:12 -0500 (EST) Cc: freebsd-questions@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-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Im attempting to do mknod's for a bunch of wired disks, named as such: > > sdCD where C= Controller and D=Disk, so dev names that would look like so: > > /dev/sd00s0 > /dev/sd01s0a > /dev/sd02s0a > . > . > /dev/sd20s0a > /dev/sd21s0a > . > . > > However I have as of yet been unable to decipher the esoteric notation for the > minor number for said devices.. Anyone care to assist? Please? :) > Look at the SDSETUNIT macro in sd.c. The decoding of the SCSI device numbers can be in the driver. -- Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936