lkml.org 
[lkml]   [2009]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: What happened to data=guarded?
In article <20090810164205.GC1505@ucw.cz> you wrote:
>> What sort of files were you losing? I don't know if we can improve
>> the implied flush hueristics, but we should at least try to see if we
>> do something about it.
>
> IIRC... the flush heuristics invoke async flush, so you can still lose
> data if you are unlucky, no?

BTW: one good heuristic would be to flush() files on close async but if the
file is renamed fush it sync before the rename. The typical close temp file
and rename it would work without a fdatasync().

Gruss
Bernd


\
 
 \ /
  Last update: 2009-08-12 00:47    [W:0.066 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site