[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.0704011422460.1054-100000@netrider.rowland.org>
Date: Sun, 1 Apr 2007 14:26:51 -0400 (EDT)
From: Alan Stern <stern@...land.harvard.edu>
To: Pavel Machek <pavel@....cz>
cc: David Zeuthen <davidz@...hat.com>, Maxim <maximlevitsky@...il.com>,
Pete Zaitcev <zaitcev@...hat.com>, <gregkh@...e.de>,
Kernel development list <linux-kernel@...r.kernel.org>,
USB development list <linux-usb-devel@...ts.sourceforge.net>
Subject: Re: USB: on suspend to ram/disk all usb devices are replugged
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 mass storage device connected with mounted systems (and add a module param override
> > > > for users who know what they are doing)
> > > >
> > > > What do you think ?
> > >
> > > Agreed... and notice how easy is to do that in userspace :-))).
> >
> > The problem with refusing to suspend with usb mass storage devices
> > mounted is just not going to work; the way we want desktop power
>
> 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 filesystems to handle this.
Actually what's needed is a Persistent Logical Volume Manager. With it,
you could even mount a filesystem on a USB device, unplug the device, plug
it back into a different port, and still be able to use the filesystem.
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.
Alan Stern
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists