[Rpm-maint] [rpm-software-management/rpm] Add macro to force fsync() on close() (#187)

Jeff Johnson notifications at github.com
Fri Apr 14 20:11:33 UTC 2017


Grrr 32 * 8 = 256Kb ... 

I can post an updated patch if that helps merging. The amount of code involved is quite small (and is perfectly obvious: move fdatasync out of the loop, perform before advise()).

I doubt that better than fallocate -> Fwrite-in-loop -> fdatasync+fadvise+fsync is possible since a single fdatasync seems better than fdatasync after every write.

Note that 17x is much better than 50x slower from a naive "opt-in" fsync

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/187#issuecomment-294227353
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170414/50a2657e/attachment.html>


More information about the Rpm-maint mailing list