On Fri, 1 Sep 2006, Rodolfo Giometti wrote:

> > Also, isn't this exactly what happens now?  If you leave a USB key plugged 
> > in as /dev/sda and mounted, then suspend and resume, don't you find the 
> > key has moved to /dev/sdb?  So what do you want to change?
> 
> I'd like the system (mass-storage or someone else) does NOT move the
> USB key from /dev/sda to /dev/sdb.

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.

If you would unmount the USB key before suspending, then the old name 
would no longer be in use.  Then the system would re-use that name when it 
resumes.  But if you can't unmount the key, then you're stuck.

> Having this feature will resolve
> several issues like, for example, using an USB key as rootfs or
> forcing an umount before suspending the system.

(Note that there already is work underway on adding the ability to force
an unmount.  But it's a completely separate issue, and anyhow if you
forcibly unmount your root filesystem you're going to be in trouble
regardless of anything else.)

> I don't understand where is the problem in doing this.

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.

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.

Alan Stern


-------------------------------------------------------------------------
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

Reply via email to