Hi list, hi Alan, I fear I geht more and more off-topic here...
Am Freitag, 11. August 2006 10:55 schrieb Klaus Muth: > Hi, list, hi Alan, > I'm learning now much more about drivers as I intended to... > > Am Donnerstag, 10. August 2006 17:34 schrieb Alan Stern: > > > Hmmm. As far I can see, this ALLOW_MEDIUM_REMOVAL is issued despite of > > > the blacklist entry. So: > > > # cat /proc/scsi/device_info | grep OPTAC > > > 'SRE ' 'OPTAC Tool ' 0x80000 > > > Maybe OPTAC Tool does not match because of the spaces? > > > > The spaces shouldn't cause a problem; they are supposed to be there. > > > > This should have worked. I don't understand why the command was issued. > > If you feel up to a little kernel debugging, you can try to figure out > > the reason. Here are the things you need to know. Most of the files > > mentioned below are in the drivers/scsi/ directory of the kernel source. [...] > > So it looks like the entries in /proc/scsi/devinfo are bad. GRRR. I'll > patch in the Vendor and Model into the static table and retry. Ok, after stumbling over scsi_static_device_list[] __initdata in drivers/scsi/scsi_devinfo.c I just added the line {"SRE", "OPTAC Tool", NULL, BLIST_NOT_LOCKABLE}, to it and - pooof - this thin magically works. This leads to my next question: Adding the entry dynamically yields # echo 'SRE:OPTAC Tool:0x80000' >/proc/scsi/device_info # cat /proc/scsi/device_info | grep OPTAC 'SRE ' 'OPTAC Tool ' 0x80000 Adding it to the static list via patching scsi_devinfo.c (I don't want to do that on production servers) yields: # cat /proc/scsi/device_info | grep OPTAC 'SRE' 'OPTAC Tool' 0x80000 which is quite a difference! How do I get the SRE-entry into /proc/scsi/device_info without those )%$!(##'!-spaces? klaus -- Klaus Muth HAGOS eG Industriestr. 62 fon: (+49) 711 78805-86 EDV-Programmierung 70565 Stuttgart fax: (+49) 711 78805-35 http://www.hagos.de Germany mailto:[EMAIL PROTECTED] ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel