[770] in linux-scsi channel archive
Re: Boot Kernels
daemon@ATHENA.MIT.EDU (Leonard N. Zubkoff)
Mon Nov 6 05:00:02 1995
Date: Mon, 6 Nov 1995 00:04:58 -0800
From: "Leonard N. Zubkoff" <lnz@dandelion.com>
To: neuffer@goofy.zdv.Uni-Mainz.de
Cc: eric@aib.com, linux-scsi@vger.rutgers.edu
In-Reply-To: <Pine.A32.3.91.951102143550.29063D-100000@gundel.zdv.Uni-Mainz.DE> (message from Michael Neuffer on Thu, 2 Nov 1995 15:08:58 +0100 (MEZ))
Date: Thu, 2 Nov 1995 15:08:58 +0100 (MEZ)
From: Michael Neuffer <neuffer@goofy.zdv.Uni-Mainz.de>
I've implemented the possibility to install single devices when I wrote
the /proc/scsi stuff.
Cat a "singledevice a/b/c/d" to /proc/scsi/scsi.
a == host_no
b == channel
c == id
d == lun
The feature is not really tested and the possibility to remove devices is
missing completely at the moment.
If you volunteer to test it we can get this working properly and also add
the possibility to remove devices.
Sure, I'll be happy to test it out. I just made an attempt with 1.3.37 and
nothing was recognized. That is, I booted the machine with a Toshiba CD-ROM at
host 2 target 5 turned off, then I turned it on and did:
gwynedd:~# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: IBM OEM Model: DFHSS2F Rev: 4141
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: IBM OEM Model: DFHSS2F Rev: 3030
Type: Direct-Access ANSI SCSI revision: 02
gwynedd:~# echo "singledevice 2/0/5/0" > /proc/scsi/scsi
gwynedd:~# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: IBM OEM Model: DFHSS2F Rev: 4141
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: IBM OEM Model: DFHSS2F Rev: 3030
Type: Direct-Access ANSI SCSI revision: 02
gwynedd:~#
Is this indeed the correct way to attempt this? I would also suggest using
"add-single-device" and "remove-single-device" or something similar, since just
using "singledevice" doesn't allow for removal.
From my limited testing and examination of the code, the parsing isn't correct
and it looks like the string has to start with "scsi singledevice". Am I
missing something here?
Leonard