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

Jeff Johnson notifications at github.com
Wed Apr 19 14:48:31 UTC 2017


Yes, fdatasync+fadvise_syncfs removes pages from system cache:

`
--> Fincore(0x614000008e40) fdno 16 path /opt/local/tmp/lib/modules/4.11.0-0.rc6.git2.1.fc27.x86_64/System.map;58f7761a
<-- Fincore(0x614000008e40) fdno 16 rc 0
<--     fdClose(0x614000008e40) rc 0    | UFD -1 fp 0x612000004e40
 FDIO:      30    write(s),  3763601 total bytes in 0.003806 secs
 FDIO:      32   digest(s),  3763601 total bytes in 0.037065 secs
 FDIO:       1    alloc(s),  3763601 total bytes in 0.000040 secs
 FDIO:       1 datasync(s),        0 total bytes in 0.072015 secs
 FDIO:       1   syncfs(s),        0 total bytes in 0.063909 secs
 FDIO:       2   incore(s),  3764224 total bytes in 0.000263 secs
`

I'm not sure whether per-partition rather than per-file durability is usefully needed for RPM.

-- 
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-295296195
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170419/463ebf53/attachment.html>


More information about the Rpm-maint mailing list