On Fri, Sep 01, 2006 at 10:30:41AM -0400, Alan Stern wrote: > > That's not possible. As far as the computer is concerned, after the > resume there is a _new_ key plugged in. The old name is still in use, > because it is mounted, so the new device _cannot_ be assigned the old > name.
But it could be possible reassign the old name? Suppose nobody replaces already plugged USB devices. > Doing what you want will open the door to lots of new errors. For > example, suppose you unplug the key while the system is asleep and then > plug in a different key before resuming. The computer would think the old > key and the new key were the same, causing it to corrupt the filesystem on > the new key and most likely to crash. I see but: 1) the system may use the vendor & product ID, the product string and serial number to identify the device reducing conflicts. 2) this could be a kernel option so the user, before enabling it, is warned. > Or take a milder example. Suppose you have a USB CDROM plugged in and > mounted when you suspend. Before resuming, you replace the CD with a > different disc. The computer will not realize the disc was changed, and > the resulting filesystem errors again are likely to cause a crash. As above. Excuse me if I insist on this topic but on some embedded systems it could be very useful using an USB key as rootfs with sleep, also in these system we are quite sure that _nobody_ will change the USB device during sleep. Thanks, Rodolfo -- GNU/Linux Solutions e-mail: [EMAIL PROTECTED] Linux Device Driver [EMAIL PROTECTED] Embedded Systems [EMAIL PROTECTED] UNIX programming phone: +39 349 2432127 ------------------------------------------------------------------------- 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