On Fri, Dec 17, 2004 at 04:38:30PM -0500, Alan Stern wrote: > On Fri, 17 Dec 2004, Tom Rini wrote: > > > [ Please CC me, I'm not on the list ] > > > > Hi. I noticed that on 2.4.29-pre1 (and earlier) that if I unplug my USB > > Storage Device (a Lexar 8-in-1 flash reader) the device disappears from > > /proc/bus/usb/devices but not from /proc/scsi/scsi (and elsewhere in the > > SCSI subsystem) and I can still attempt to mount it, which results in a > > non-fatal error, but also means I can't use the device anymore without > > reloading usb-storage. Current 2.6 doesn't have this problem, but I > > don't quite see what call in 2.6 is fixing it. Thanks. > > Amusingly enough, the change in behavior was caused not by adding code but > by removing it. The usb-storage driver in 2.4 went to some trouble to try > and maintain the ficticious existences of devices after they had been > unplugged. In 2.6 all that was removed, and so now when you unplug a > device it just goes away, period.
Ah. How hard would it be to get the 2.6 behavior, if one wanted it? > By the way, you shouldn't need to reload usb-storage in 2.4 to use a > device after it has been unplugged. Plugging it back in ought to be > enough. Just don't try to mount it while it's not plugged in. I wasn't clear. Indeed what I was saying was that if you try and accidentally mount it while it's not plugged in, things go wrong. -- Tom Rini http://gate.crashing.org/~trini/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
