[Rpm-maint] [rpm-software-management/rpm] Add macro to force fsync() on close() (#187)
notifications at github.com
Wed Apr 5 07:12:41 UTC 2017
There is an alternative (but more complicated) lazy implementation that might be attempted by doing a fsync in Fwrite (or fdWrite) when the accumulated I/O passes a certain mark. Hmmmm ...
A general solution to add a resource cap on all rpmio I/O could also be attempted (but isn't easy). Berkeley DB does something like this with mpool file handles, and it would not be impossibly hard to use aio_write(3) instead of write(2) as a new type of rpmio. But that would require a common buffer allocation pool (or buffer-in-flight mapping) underneath rpmio (to provide the resource cap), as well as a reliable means to determine when I/O has actually been written to DASD (to free/unmap the buffer-in-flight).
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-maint