Re: add-single-device won't work in 2.4.3

Douglas Gilbert (dougg@torque.net)
Sat, 31 Mar 2001 10:00:37 -0500


Armin,
It works for me:

$ uname -a
Linux frig 2.4.3 #1 Fri Mar 30 16:33:45 EST 2001 i586 unknown

$ cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: IBM Model: DNES-309170W Rev: SA30
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi2 Channel: 00 Id: 05 Lun: 00
Vendor: UMAX Model: Astra 1220S Rev: V1.2
Type: Scanner ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 06 Lun: 00
Vendor: YAMAHA Model: CRW4416S Rev: 1.0g
Type: CD-ROM ANSI SCSI revision: 02

$ echo "scsi remove-single-device 2 0 5 0" > /proc/scsi/scsi
$ cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: IBM Model: DNES-309170W Rev: SA30
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi2 Channel: 00 Id: 06 Lun: 00
Vendor: YAMAHA Model: CRW4416S Rev: 1.0g
Type: CD-ROM ANSI SCSI revision: 02

$ echo "scsi add-single-device 2 0 5 0" > /proc/scsi/scsi
$ cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: IBM Model: DNES-309170W Rev: SA30
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi2 Channel: 00 Id: 06 Lun: 00
Vendor: YAMAHA Model: CRW4416S Rev: 1.0g
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 05 Lun: 00
Vendor: UMAX Model: Astra 1220S Rev: V1.2
Type: Scanner ANSI SCSI revision: 02

$ sg_scan -i
/dev/sg0: scsi1 channel=0 id=1 lun=0 type=0
IBM DNES-309170W SA30 [wide=1 sync=1 cmdq=1 sftre=0 pq=0x0]
/dev/sg1: scsi2 channel=0 id=6 lun=0 type=5
YAMAHA CRW4416S 1.0g [wide=0 sync=1 cmdq=0 sftre=0 pq=0x0]
/dev/sg2: scsi2 channel=0 id=5 lun=0 type=6
UMAX Astra 1220S V1.2 [wide=0 sync=0 cmdq=0 sftre=0 pq=0x0]

This last command is from sg_utils and it sends actual
INQUIRY commands rather than relying on data held in
the midlayer. This demonstrates the devices are responding.

Run on a AMD K6-2 500MHz machine with 2 advansys adapters.
Could you retest. If it continues to fail then it may be
a problem with the new aic7xxx driver. You also have the
option of building with the "old" (i.e. former) aic7xxx
driver.

Doug Gilbert

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/