Messages in this thread | | | Date | Mon, 26 May 2008 20:49:14 -0700 | From | Greg KH <> | Subject | Re: Top 10 bugs/warnings for the week of March 23rd, 2008 |
| |
On Mon, May 26, 2008 at 01:01:48PM -0400, Theodore Tso wrote: > On Mon, May 26, 2008 at 06:48:58PM +0200, Ingo Molnar wrote: > > > > What if the USB stick was pulled mistakenly, the user notices her > > mistake later on and plugs the USB stick back in and expects all the > > data to not be corrupted? > > If the USB stack folks would like to work on how to recognize that > it's the same USB stick that had been previously pulled, so that it > gets the same block device, and we can decide for how long we should > keep dirty buffers around associated with a pulled USB stick, we can > certainly have that conversation. :-)
We do that already on suspend/resume, so it should not be hard to move that to a disconnect/connect model as well, it's the same code path :)
Bring it up on the linux-usb list if you are interested in persuing this.
In the meanwhile, getting rid of the warning would be a good idea.
thanks,
greg k-h
| |