Comment 55 for bug 317781

Revision history for this message
3vi1 (launchpad-net-eternaldusk) wrote :

@Theo

Thank you very much for taking the time to write that very illuminating explanation. I can now see why you characterize this as a problem with the way the applications are written.

That said, I'm kind of skeptical that every app programmer will get to the same mental place and do things the "right" way. Though I promise to try, now knowing what I know. :)

Is there no way to cache any file open call that uses O_TRUNC such that the truncation never happens until the file is committed? I'm sure there are considerations that are not immediately obvious to me.