From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11687 invoked from network); 5 Aug 1998 03:19:40 -0000 Received: from stefan.sime.com (193.228.80.247) by mail2.redhat.com with SMTP; 5 Aug 1998 03:19:39 -0000 Received: (from stefan@localhost) by stefan.sime.com (8.8.7/8.8.7) id FAA03381; Wed, 5 Aug 1998 05:17:29 +0200 Date: Wed, 5 Aug 1998 05:17:29 +0200 Message-Id: <199808050317.FAA03381@stefan.sime.com> From: Quant-X Alpha Linux Support To: axp-list@redhat.com In-reply-to: (message from Christopher Curtis on Tue, 4 Aug 1998 21:58:53 -0400 (EDT)) Subject: Re: using cdrecord MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: Quant-X Alpha Linux Support Reply-To: Quant-X Alpha Linux Support Organization: Quant-X Service & Consulting Ges.m.b.H. X-Mailer: GNU Emacs 20.2.1 C-x m (X11 ; I; Linux 2.1.113 i586) References: Hi Christopher ! > > which card, 0,2,0. Since you can query the bus to > > find out what each device is, I see no problem with > > the way cdrecord under Linux numbers things. > > Neither do I. Having significant Solaris experience, that it how I would > expect it. The problem is that *Linux* does idiot SCSi remapping. For > example, right now I have three SCSI devices. A hard drive, tape backup, > and CD burner. The hard drive came with SCSI ID 6. Linux calls this > /dev/sda. When I put the CD-ROM (ID 4) into the chain, the hard drive now > becomes /dev/sdb. Duh? Solaris does it right. Linux does not. Adding a CD-ROM should not affect disk ordering at all ! I hope that you meant /dev/sga, /sgb. There is no right or wrong. Linux supports only 16 SCSI-HD's because we have only 256/256 major minor numbers. This is really bad (and stupid), but not wrong. cdrecord uses /dev/sg + an ioctl to get the hda:id:lun. So scanning /dev/sg* can be used to map relative (/dev/sg*) to absolute (hda:id:lun). So the minor-# may change but there is no problem to find absolute devices there at all. I've ported cdrecord to DU (CAM) last March and there is only a single device-node (/dev/cam) for all SCSI devices. This requires to build pseudo fd's for cdrecord (shifting bus/tgt/lun) and demultiplexing it in scsi_send. ANSI-CAM would be a nice interface to have in Linux not only because it has only a single entry. But it's impossible to implement it in a nice way. I know that Joerg Schilling likes Solaris very much. But Solaris SCSI-layer is also proprietary. The only standard out there is ANSI-CAM (as supported (but a bit broken) under DU). ciao - Stefan -- Quant-X Service & Ph: (+43) 4212 6004-0 Consulting Ges.m.b.H. Fax: (+43) 4212 600420 http://www.quant-x.com Email: support@quant-x.com