Hi, On Saturday 29 October 2005 07:23, Randall R Schulz wrote:
Kevan,
...
Once again, ...
There are two parts to synchronous file system writing. One is that the kernel does not hold on to dirty buffers--it always flushes them to the device immediately upon receipt of new data from the user-level application.
The other is that it does not return control from the write system call that sent data to the device until the write is complete. If you're using simple GUI commands that perform some operation and
I meant to write "CLI" (command-line interface) _not_ "GUI" here.
return (as opposed to interactive commands which _might_ be multi-threaded, though many are not), then by the time you see the prompt after issuing the command that sends data to the USB-attached device, all the I/O is complete and the device may be disconnected.
...
Randall Schulz