Messages in this thread | | | Date | Wed, 12 Aug 2009 00:00:15 +0200 (CEST) | From | Bernd Eckenfels <> | Subject | Re: 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
| |