Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-06 Thread Nigel Cunningham
Hi. On Mon, 2007-04-02 at 21:36 +0200, Pavel Machek wrote: > Hi! > > > > But you're still likely to run into trouble if you unplug a storage > > > device, move it to another system and write on it, then plug it back into > > > the original system. The PLVM would somehow have to recognize that

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-06 Thread Pavel Machek
Hi! > > But you're still likely to run into trouble if you unplug a storage > > device, move it to another system and write on it, then plug it back into > > the original system. The PLVM would somehow have to recognize that the > > data had been changed. I don't know a foolproof way of doing

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-06 Thread Pavel Machek
Hi! But you're still likely to run into trouble if you unplug a storage device, move it to another system and write on it, then plug it back into the original system. The PLVM would somehow have to recognize that the data had been changed. I don't know a foolproof way of doing that.

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-06 Thread Nigel Cunningham
Hi. On Mon, 2007-04-02 at 21:36 +0200, Pavel Machek wrote: Hi! But you're still likely to run into trouble if you unplug a storage device, move it to another system and write on it, then plug it back into the original system. The PLVM would somehow have to recognize that the data

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-02 Thread Rafael J. Wysocki
On Monday, 2 April 2007 04:54, Alan Stern wrote: > On Sun, 1 Apr 2007, Rafael J. Wysocki wrote: > > > Hi, > > > > On Sunday, 1 April 2007 20:34, Pavel Machek wrote: > > > Hi! > > > > > > > > Problem is that suspending _with_ removable mass storage devices > > > > > attached just will not work.

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-02 Thread Chuck Ebbert
Alan Stern wrote: > On Sun, 1 Apr 2007, Pavel Machek wrote: > >> Hi! >> >> The GNOME hath spoken? > I also thought about that, > > I think that the best solution is still to hide connect/disconnect of > usb devices from userspace (now it also causes corruption) >

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-02 Thread Pavel Machek
Hi! > >Problem is that suspending _with_ removable mass > >storage devices > >attached just will not work. User will unplug them, > >then complain > >about corruption. Advanced user will unplug them, work > >with them > >somewhere else, replug them, then loose filesystem. > > > >Feel free to

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-02 Thread Mark Lord
Pavel Machek wrote: .. Problem is that suspending _with_ removable mass storage devices attached just will not work. User will unplug them, then complain about corruption. Advanced user will unplug them, work with them somewhere else, replug them, then loose filesystem. Feel free to send patch

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-02 Thread Mark Lord
Pavel Machek wrote: .. Problem is that suspending _with_ removable mass storage devices attached just will not work. User will unplug them, then complain about corruption. Advanced user will unplug them, work with them somewhere else, replug them, then loose filesystem. Feel free to send patch

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-02 Thread Pavel Machek
Hi! Problem is that suspending _with_ removable mass storage devices attached just will not work. User will unplug them, then complain about corruption. Advanced user will unplug them, work with them somewhere else, replug them, then loose filesystem. Feel free to send patch to teach

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-02 Thread Chuck Ebbert
Alan Stern wrote: On Sun, 1 Apr 2007, Pavel Machek wrote: Hi! The GNOME hath spoken? I also thought about that, I think that the best solution is still to hide connect/disconnect of usb devices from userspace (now it also causes corruption) But to refuse suspend with any usb

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-02 Thread Rafael J. Wysocki
On Monday, 2 April 2007 04:54, Alan Stern wrote: On Sun, 1 Apr 2007, Rafael J. Wysocki wrote: Hi, On Sunday, 1 April 2007 20:34, Pavel Machek wrote: Hi! Problem is that suspending _with_ removable mass storage devices attached just will not work. User will unplug them,

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Alan Stern
On Sun, 1 Apr 2007, Rafael J. Wysocki wrote: > Hi, > > On Sunday, 1 April 2007 20:34, Pavel Machek wrote: > > Hi! > > > > > > Problem is that suspending _with_ removable mass storage devices > > > > attached just will not work. User will unplug them, then complain > > > > about corruption.

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Rafael J. Wysocki
Hi, On Sunday, 1 April 2007 20:34, Pavel Machek wrote: > Hi! > > > > Problem is that suspending _with_ removable mass storage devices > > > attached just will not work. User will unplug them, then complain > > > about corruption. Advanced user will unplug them, work with them > > > somewhere

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Pavel Machek
Hi! > > Problem is that suspending _with_ removable mass storage devices > > attached just will not work. User will unplug them, then complain > > about corruption. Advanced user will unplug them, work with them > > somewhere else, replug them, then loose filesystem. > > > > Feel free to send

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Pavel Machek
Hi! > > Problem is that suspending _with_ removable mass storage devices > > attached just will not work. User will unplug them, then complain > > about corruption. Advanced user will unplug them, work with them > > somewhere else, replug them, then loose filesystem. > > > > Feel free to send

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Alan Stern
On Sun, 1 Apr 2007, Pavel Machek wrote: > Hi! > > > > > > The GNOME hath spoken? > > > > > > > I also thought about that, > > > > > > > > I think that the best solution is still to hide > > > > connect/disconnect of usb devices from userspace (now it also causes > > >

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread David Zeuthen
On Sun, 2007-04-01 at 19:50 +0200, Pavel Machek wrote: > Problem is that suspending _with_ removable mass storage devices > attached just will not work. User will unplug them, then complain > about corruption. Advanced user will unplug them, work with them > somewhere else, replug them, then loose

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Pavel Machek
Hi! > > > > The GNOME hath spoken? > > > > > I also thought about that, > > > > > > I think that the best solution is still to hide connect/disconnect of > > > usb devices from userspace (now it also causes corruption) > > > But to refuse suspend with any usb mass storage device

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread David Zeuthen
On Sun, 2007-04-01 at 15:29 +, Pavel Machek wrote: > Hi! > > > > > In that case the user would see data corruption - just as if he mounts > > > > a piece > > > > of removable media in a USB card reader; yanks out the card and > > > > modifies it > > > > elsewhere, and then puts it back in.

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Pavel Machek
Hi! > > > In that case the user would see data corruption - just as if he mounts a > > > piece > > > of removable media in a USB card reader; yanks out the card and modifies > > > it > > > elsewhere, and then puts it back in. > > > > > I my opinion we can't really defend ourselves against such

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Pavel Machek
Hi! In that case the user would see data corruption - just as if he mounts a piece of removable media in a USB card reader; yanks out the card and modifies it elsewhere, and then puts it back in. I my opinion we can't really defend ourselves against such users... We can

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread David Zeuthen
On Sun, 2007-04-01 at 15:29 +, Pavel Machek wrote: Hi! In that case the user would see data corruption - just as if he mounts a piece of removable media in a USB card reader; yanks out the card and modifies it elsewhere, and then puts it back in. I my opinion

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Pavel Machek
Hi! The GNOME hath spoken? I also thought about that, I think that the best solution is still to hide connect/disconnect of usb devices from userspace (now it also causes corruption) But to refuse suspend with any usb mass storage device connected with mounted

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread David Zeuthen
On Sun, 2007-04-01 at 19:50 +0200, Pavel Machek wrote: Problem is that suspending _with_ removable mass storage devices attached just will not work. User will unplug them, then complain about corruption. Advanced user will unplug them, work with them somewhere else, replug them, then loose

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Alan Stern
On Sun, 1 Apr 2007, Pavel Machek wrote: Hi! The GNOME hath spoken? I also thought about that, I think that the best solution is still to hide connect/disconnect of usb devices from userspace (now it also causes corruption) But

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Pavel Machek
Hi! Problem is that suspending _with_ removable mass storage devices attached just will not work. User will unplug them, then complain about corruption. Advanced user will unplug them, work with them somewhere else, replug them, then loose filesystem. Feel free to send patch to teach

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Pavel Machek
Hi! Problem is that suspending _with_ removable mass storage devices attached just will not work. User will unplug them, then complain about corruption. Advanced user will unplug them, work with them somewhere else, replug them, then loose filesystem. Feel free to send patch to teach

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Rafael J. Wysocki
Hi, On Sunday, 1 April 2007 20:34, Pavel Machek wrote: Hi! Problem is that suspending _with_ removable mass storage devices attached just will not work. User will unplug them, then complain about corruption. Advanced user will unplug them, work with them somewhere else, replug

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-04-01 Thread Alan Stern
On Sun, 1 Apr 2007, Rafael J. Wysocki wrote: Hi, On Sunday, 1 April 2007 20:34, Pavel Machek wrote: Hi! Problem is that suspending _with_ removable mass storage devices attached just will not work. User will unplug them, then complain about corruption. Advanced user will

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-29 Thread Mark Lord
Alan Stern wrote: On Thu, 29 Mar 2007, Mark Lord wrote: Mmm.. this sounds really bad -- I wonder what happens if the rootfs is on USB ? The system crashes as soon as it resumes. As you might expect. With older kernels, things just "worked" this way. Has it now been broken ?? No; it has

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-29 Thread Alan Stern
On Thu, 29 Mar 2007, Mark Lord wrote: > Maxim Levitsky wrote: > > Hi, > > I noticed that after suspend/resume cycle all my usb devices are > > unplugged/replugged by uhci driver. > > While it is not that big problem to me, that can be a real problem if a > > device is a flash card with

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-29 Thread Mark Lord
Maxim Levitsky wrote: Hi, I noticed that after suspend/resume cycle all my usb devices are unplugged/replugged by uhci driver. While it is not that big problem to me, that can be a real problem if a device is a flash card with mounted file-system, because disappeared device will cause

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-29 Thread Mark Lord
Maxim Levitsky wrote: Hi, I noticed that after suspend/resume cycle all my usb devices are unplugged/replugged by uhci driver. While it is not that big problem to me, that can be a real problem if a device is a flash card with mounted file-system, because disappeared device will cause

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-29 Thread Alan Stern
On Thu, 29 Mar 2007, Mark Lord wrote: Maxim Levitsky wrote: Hi, I noticed that after suspend/resume cycle all my usb devices are unplugged/replugged by uhci driver. While it is not that big problem to me, that can be a real problem if a device is a flash card with mounted

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-29 Thread Mark Lord
Alan Stern wrote: On Thu, 29 Mar 2007, Mark Lord wrote: Mmm.. this sounds really bad -- I wonder what happens if the rootfs is on USB ? The system crashes as soon as it resumes. As you might expect. With older kernels, things just worked this way. Has it now been broken ?? No; it has

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-27 Thread Maxim
On Tuesday 27 March 2007 20:05:24 Pete Zaitcev wrote: > On Tue, 27 Mar 2007 13:15:14 -0400 (EDT), Alan Stern <[EMAIL PROTECTED]> > wrote: > > > > Suspend to disk still causes "virtual replugging" and I think that > > > controller is reset and will unplug/replug devices anyway > > > Resolving

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-27 Thread Pete Zaitcev
On Tue, 27 Mar 2007 13:15:14 -0400 (EDT), Alan Stern <[EMAIL PROTECTED]> wrote: > > Suspend to disk still causes "virtual replugging" and I think that > > controller is reset and will unplug/replug devices anyway > > Resolving this problem is very difficult. Maybe it possible to check on > >

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-27 Thread Maxim
On Tuesday 27 March 2007 19:15:14 Alan Stern wrote: > On Tue, 27 Mar 2007, Maxim Levitsky wrote: > > > Hi, > > I noticed that after suspend/resume cycle all my usb devices are > > unplugged/replugged by uhci driver. > > While it is not that big problem to me, that can be a real problem if a

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-27 Thread Alan Stern
On Tue, 27 Mar 2007, Maxim Levitsky wrote: > Hi, > I noticed that after suspend/resume cycle all my usb devices are > unplugged/replugged by uhci driver. > While it is not that big problem to me, that can be a real problem if a > device is a flash card with mounted > file-system, because

USB: on suspend to ram/disk all usb devices are replugged

2007-03-27 Thread Maxim Levitsky
Hi, I noticed that after suspend/resume cycle all my usb devices are unplugged/replugged by uhci driver. While it is not that big problem to me, that can be a real problem if a device is a flash card with mounted file-system, because disappeared device will cause file-system corruption.

USB: on suspend to ram/disk all usb devices are replugged

2007-03-27 Thread Maxim Levitsky
Hi, I noticed that after suspend/resume cycle all my usb devices are unplugged/replugged by uhci driver. While it is not that big problem to me, that can be a real problem if a device is a flash card with mounted file-system, because disappeared device will cause file-system corruption.

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-27 Thread Alan Stern
On Tue, 27 Mar 2007, Maxim Levitsky wrote: Hi, I noticed that after suspend/resume cycle all my usb devices are unplugged/replugged by uhci driver. While it is not that big problem to me, that can be a real problem if a device is a flash card with mounted file-system, because

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-27 Thread Maxim
On Tuesday 27 March 2007 19:15:14 Alan Stern wrote: On Tue, 27 Mar 2007, Maxim Levitsky wrote: Hi, I noticed that after suspend/resume cycle all my usb devices are unplugged/replugged by uhci driver. While it is not that big problem to me, that can be a real problem if a device

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-27 Thread Pete Zaitcev
On Tue, 27 Mar 2007 13:15:14 -0400 (EDT), Alan Stern [EMAIL PROTECTED] wrote: Suspend to disk still causes virtual replugging and I think that controller is reset and will unplug/replug devices anyway Resolving this problem is very difficult. Maybe it possible to check on unplugging

Re: USB: on suspend to ram/disk all usb devices are replugged

2007-03-27 Thread Maxim
On Tuesday 27 March 2007 20:05:24 Pete Zaitcev wrote: On Tue, 27 Mar 2007 13:15:14 -0400 (EDT), Alan Stern [EMAIL PROTECTED] wrote: Suspend to disk still causes virtual replugging and I think that controller is reset and will unplug/replug devices anyway Resolving this problem is