System requirements to observe this bug:

a large file to move (e.g. 700Meg ISO image).
large amounts of RAM available for file caching.
2 separate disks of significantly different speed (e.g. one fast internal HDD, 
one fairly slow external HDD).

When I mv the file from the fast disk to the slow one, it is easy to observe 
that the read operation (from the fast disk) can finish a long time in advance 
of the write (to the slow disk). 
When mv has finished reading the file, the file is deleted from the original 
location. However, it is often the case that the write operation continues for 
a long time (even minutes!) after this occurs, as the data to be written is 
held in RAM cache.

This leaves a large window of opportunity for data loss if anything bad happens 
before the file is completely written.
Surely the original file should not be removed until it has been safely and 
completely written to the new location?



_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to