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?
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.