On Mon, Apr 21, 2014 at 10:34:18PM +0100, Jamie Lokier wrote: > A ranged-fdatasync, for databases with little logs inside the big data > file, would be nice. AIX, NetBSD and FreeBSD all have one :) Any > likelihood of that ever appearing in Linux? sync_file_range() comes > with its Warning in the man page which basically means "don't trust me > unless you know the filesystem exactly". We have the infrastructure for range fsync and fdatasync in the kernel, it's just not exposed. Given that you've already done the research how about you send a patch to wire it up? Do the above implementations at least agree on an API for it? sync_file_range() unfortunately only writes out pagecache data and never the needed metadata to actually find it. While we could multiplex a range fsync over it that seems to be very confusing (and would be more complicated than just adding new syscalls) > Then there's this, about Linux NFS incoherency with msync() and O_DIRECT: > > - https://groups.google.com/d/msg/comp.os.linux.development.apps/B49Rej6KV24/xEouZOVXs9gJ That mail is utterly confused. Yes, NFS has less coherency than normal filesystems (google for close to open), but msync actually does it's proper job on NFS. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html