David Holland <dholland-t...@netbsd.org> writes:

> Last year, fdatasync() was changed to allow syncing files opened
> read-only, because that ceased to be prohibited by POSIX and something
> apparently depended on it.

I have a dim memory of this and mongodb.

> However, fsync_range() was not also so changed. Should it have been?
> It's now inconsistent with fsync and fdatasync and it seems like it's
> meant to be a strict superset of them.

It seems like it might as well be.  I would expect this to only really
sync the file's metadata, same as the others, but I do not feel like I
really understand this.

Attachment: signature.asc
Description: PGP signature

Reply via email to