>From [EMAIL PROTECTED] Wed Feb 10 20:51:30 1999

>On Wed, Feb 10, 1999 at 02:41:57PM +0100, Joerg Schilling wrote:
>> To address a SCSI device, I need to know the bus/target/lun numbers and
>> I know them because I did set them up when I connected the device
>> to my machine.

>Why should I? It should be sufficient to know that I want to address my
>CD-ROM (or the first CD-ROM if I have multiple drives). Why do *I* have to
>know the exact ID?

>I agree that a program should be able to communicate on a low-level basis by
>specifying a SCSI address/LUN, but I don't see why this should be the
>primary interface a user is confronted with.

But the mapping from bus/target/lun should not be done inside the kernel.
The kernel cannot help you:

        Let's assume I have 8 CD-recorders on 4 SCSI busses each two sharing
        a fast cache disk and I put them somehow into 2 boxes (4 into each).

Now you are right, the drives don't send you a serial number
and for this reason, the kernel cannot help you.

But you most likely will but labels on the drives. 

Well cdrecord gives you the possibility to mapo the device name exactly to the
name you put on the labels.

cdrecord dev=burner_1

will work if you e.g. create a file /etc/default/cdrecord
with the following content:

#ident @(#)cdrecord.dfl 1.1 98/12/06 Copyr 1998 J. Schilling
#
# This file is /etc/default/cdrecord
# It contains defaults that are used if no command line option
# or environment is present.
# 
# The default device, if not specified elswhere
#
CDR_DEVICE=teac

# 
# The default speed, if not specified elswhere
#
CDR_SPEED=4

# 
# The default FIFO size if, not specified elswhere
#
CDR_FIFOSIZE=4m

#
# The following definitions allow abstract device names.
# They are used if the device name does not contain the
# the characters ',', ':', '/' and '@'
#
# drive name    device  speed   fifosize
#
burner_1=       1,0,0   -1      -1
burner_2=       1,1,0   -1      -1
burner_3=       2,0,0   -1      -1
burner_4=       2,1,0   -1      -1


J�rg

 EMail:[EMAIL PROTECTED] (home) J�rg Schilling D-13353 Berlin
       [EMAIL PROTECTED]               (uni)  If you don't have iso-8859-1
       [EMAIL PROTECTED]           (work) chars I am J"org Schilling
 URL:  http://www.fokus.gmd.de/usr/schilling   ftp://ftp.fokus.gmd.de/pub/unix

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to