[2149] in linux-scsi channel archive
More than one SCSI controler & SCSI_IOCTL_GET_IDLUN
daemon@ATHENA.MIT.EDU (Joerg Schilling)
Sat Jul 12 10:54:34 1997
Date: Sat, 12 Jul 1997 16:48:16 +0200
From: schilling@fokus.gmd.de (Joerg Schilling)
To: linux-scsi@vger.rutgers.edu
Cc: tn@bv.rz.fh-muenchen.de
Hi,
I want to enhance cdrecord to be able to deal with more than
one SCSI controler.
For that reason I need to know the SCSI Bus #, the Target ID and the LUN
of each device. For this reason I found only one ioctl(2):
SCSI_IOCTL_GET_IDLUN. It gives TargetID & LUN but unfortunately
there is no Bus #.
Instead there is totally rubbish information low_ino & 0xff
I will for that reason give the advice for all cdrecord users
to change /usr/src/linux/drivers/scsi/scsi_ioctl.c line 338
from:
+ ((dev->host->hostt->proc_dir->low_ino & 0xff) << 24),
to:
+ (dev->host->host_no << 24),
As the file scsi_ioctl.c seemes not to be maintained, I ask you
to modify this on the next Linux release too.
Joerg
http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix