Comment 29 for bug 537241

Revision history for this message
Phillip Susi (psusi) wrote : Re: [Bug 537241] Re: My computer updates are very slow since latest dpkg update

On 4/20/2010 6:31 AM, Jean-Baptiste Lallement wrote:
> auto_da_alloc doesn't even detect the replace via rename situation
> (in fact it does, but only in the simplest cases)

Ahh, so it *IS* broken, even with data=ordered.

> It's not the place to discuss about it since this report is about
> performance, but I don't think the solution is to add fsyncs to all
> the applications around and it is not realistic. The solution is to
> fix ext4 itself. To draw a parallel, there is no single database
> engine leaving empty rows when a transaction failed. Why should a fs
> behave differently ?

Yes, ext4 should be fixed then. A rename() replacing an existing file
must act as a barrier causing the new file to be flushed before the
rename is committed.