On Mon, Jul 10, 2006 at 12:25:46PM +0200, Roger Larsson wrote: > Not double since it is only the first read after a write that needs to be > rewritten. My assumption is that most files are written fewer times than > they are read. And the read for the copy is free since that was what > triggered it. But there is a cost, and the question is how much does this buy you compared to simply getting it right the first time, either via a delayed allocation scheme, or where the application knows how big the file is up front (as is often the case). In addition your scheme is extremely pessimal behaviour for temporary files which are writtena and read once before being deleted.... - Ted - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html