News for hackers. Stuff that matters.
Re:File consistency (2015) by colanderman on Friday March 30, 2018 @11:28AM (#16716881)
Linux gives you sync_file_range(2), which solves the granularity problem of fsync(2). (Not that it's a particularly big problem anyway if you store your data and log in two separate files. Your data need only be synced during checkpointing, and you always want to sync everything recently written to your log.) fsync(2) semantic issues aside.

While SCSI does support explicit write ordering, many SANs do not. They define write ordering (and therefore crash consistency) using only request-after-reply semantics. So the fact that memory-barrier-style primitives aren't exposed for file or block isn't a big loss for portable applications either.

There are no comments on this comment yet.