LWN.net Logo

sync_file_range

sync_file_range

Posted May 27, 2008 18:12 UTC (Tue) by stephen_pollei (guest, #23348)
In reply to: This is what makes RPM slow as well by arjan
Parent article: Fsyncers and curveballs (the Firefox 3 fsync() problem)

Isn't long sync_file_range(int fd, off64_t offset, off64_t nbytes, unsigned int flags); the
better more modern alternative to fsync fdatasync? Would smart use of that help both rpm and
sqlite?


(Log in to post comments)

sync_file_range

Posted Jun 1, 2008 22:15 UTC (Sun) by jlokier (guest, #52227) [Link]

Perhaps but it's not implemented all that well at the moment.  The documentation is rather
confusing and leaves out a few important things.  The flags are rather specific artifacts of
the way Linux mm works, not a natural "kernel-neutral" API for syncing a file range.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds