From owner-freebsd-hackers Mon Jun 12 21:31:17 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA22696 for hackers-outgoing; Mon, 12 Jun 1995 21:31:17 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id VAA22675 for ; Mon, 12 Jun 1995 21:31:15 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA14216; Tue, 13 Jun 1995 06:31:13 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id GAA20096 for freebsd-hackers@freebsd.org; Tue, 13 Jun 1995 06:31:11 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id GAA06418 for freebsd-hackers@freebsd.org; Tue, 13 Jun 1995 06:11:11 +0200 From: J Wunsch Message-Id: <199506130411.GAA06418@uriah.heep.sax.de> Subject: Re: `device' versus `disk' in kernel config file To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Tue, 13 Jun 1995 06:11:11 +0200 (MET DST) Reply-To: freebsd-hackers@freebsd.org (FreeBSD hackers) In-Reply-To: <199506122040.GAA27564@godzilla.zeta.org.au> from "Bruce Evans" at Jun 13, 95 06:40:18 am Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1037 Sender: hackers-owner@freebsd.org Precedence: bulk As Bruce Evans wrote: > > >What exactly is the difference between saying: > > > device sd0 > > device st0 > > >and > > > disk sd0 > > tape st0 > > >in a kernel config file? > > The latter wouldn't work. In general, `disk's are attached to controllers > and `devices's are stand-alone. `device sd0' would give little more than > a file "sd.h" with `#define NSD 1" in it, except config/mkioconf.c knows > that the devices cd, ch, sd, st and uk are scsi devices (:-() and generates > extra code for them. Perhaps the rules should be generalized, and we should people require to configure their scsi devices like: disk sd0 on scbus? tape st0 on scbus? when referring to the `generic' devices? This would config allow to forget about the extra knowledge to know all SCSI device by name. disk sd? on scbus? might be even better, but i guess it's beyond the current syntax. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)