← Back to context Comment by altfredd 2 years ago The "data" setting of ext filesystems isn't replacement for fsync(). 2 comments altfredd Reply Dylan16807 2 years ago It's not a replacement but it can give you some guarantees.Also fsync is a terrible API that should be replaced, but that's mostly a different topic. the8472 2 years ago At least on linux you can use io_uring to make fsync asynchronous. And you can initiate some preparatory flushing with sync_file_range and only do the final commit with fsync to cut down the latency.
Dylan16807 2 years ago It's not a replacement but it can give you some guarantees.Also fsync is a terrible API that should be replaced, but that's mostly a different topic. the8472 2 years ago At least on linux you can use io_uring to make fsync asynchronous. And you can initiate some preparatory flushing with sync_file_range and only do the final commit with fsync to cut down the latency.
the8472 2 years ago At least on linux you can use io_uring to make fsync asynchronous. And you can initiate some preparatory flushing with sync_file_range and only do the final commit with fsync to cut down the latency.
It's not a replacement but it can give you some guarantees.
Also fsync is a terrible API that should be replaced, but that's mostly a different topic.
At least on linux you can use io_uring to make fsync asynchronous. And you can initiate some preparatory flushing with sync_file_range and only do the final commit with fsync to cut down the latency.