Anders Johansson wrote:
On Saturday 04 March 2006 19:42, James Knott wrote:
So, in order to prevent corruption, we make the device unusable? These devices usually have lights that flash. When the flashing has stopped for a few seconds, it's done.
Asynchronous I/O isn't quite as simple as that. Even in that model of usability windows you have to wait for the OS to pop up a window saying "it is now safe to remove your device" or some such. The only way to know is to unmount the device if it's mounted async
There's got to be something better than crippling the device. Someone else mentioned the window won't close, until the transfer has completed. If the desktop is checking to make sure there are no open files, then that should be good enough. According to the instructions that came with my SanDisk 1 GB drive, Windows XP users can wait for the light to stop flashing and other verisons have to click on that icon to allow safe removal. Even something like that, is far preferrable to waiting hours for writing to complete.