On Thu, Jun 19, 2003 at 10:29:58PM +0200, Vedran Rodic wrote: > On Thu, Jun 19, 2003 at 11:47:02AM -0400, Alan Stern wrote: > > > 3. > > > I've noticed that usb-storage doesn't remove the disk from /proc/scsi/scsi > > > (the representation of kernel scsi device list) > > > when the device is disconnected. Because of that, I cannot connect a > > > different hard disk to usb, without rmmod/insmod usb-storage first, and that can > > > be impossible when I have another device on usb-storage that I don't want to > > > stop using. Can this be fixed for 2.4? > > > > That was by design. The behavior has been changed for 2.5, but it's not > > going to be changed for 2.4 since the SCSI layer for 2.4 can't handle > > hot-unplugging. However, depending on what sort of disk you're using > > this shouldn't affect you. Go ahead and leave the old device entry in > > /proc/scsi/scsi; when you plug in a different disk it should get its own > > new entry. > > Hmm. The problem is that it doesn't get a new entry. What I do is: > I disconnect the USB IDE case, and replace the disk inside it with a > different disk. When I connect it again it detects it's been conected, but > doesn't add a new scsi entry, I still see an old QUANTUM drive there, and it > should be IBM.
Yes, that is one of the few cases which are not handled correctly. Since usb-storage sees the same USB/ATA adaptor, it believes the device is the same. You should be able to do an 'echo scsi-remove-single-device' and add-single-device to manually make the SCSI layer re-scan the device for it's new type. But this isn't the most reliable thing on 2.4.x kernels. As Alan pointed out, this is all fixed on 2.5 Matt -- Matthew Dharm Home: [EMAIL PROTECTED] Maintainer, Linux USB Mass Storage Driver G: Let me guess, you started on the 'net with AOL, right? C: WOW! d00d! U r leet! -- Greg and Customer User Friendly, 2/12/1999
pgp00000.pgp
Description: PGP signature