Subject: Re: sudden detach
To: Joerg Sonnenberger <joerg@britannica.bec.de>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 07/11/2006 13:50:20
On Jul 11, 2006, at 10:23 AM, Joerg Sonnenberger wrote:
> On Tue, Jul 11, 2006 at 12:18:04PM -0500, David Young wrote:
>> I have always considered it a bug in Windows XP that the user has to
>> intervene before a device can be removed. I thought that both USB
>> and
>> Cardbus were designed to make a sudden detach possible? In
>> principle,
>> can't a carefully written driver survive a sudden detach?
>
> The user is *asked* to warn the OS ahead. This makes it more reliable.
> Most of the time it doesn't matter.
And, in fact, XP does writes to e.g. USB memory sticks synchronously
in order to avoid problems "just yanking" the device.
>
> Joerg
-- thorpej