Y
Hacker News
new
|
ask
|
show
|
jobs
by
altfredd
933 days ago
The "data" setting of ext filesystems isn't replacement for fsync().
1 comments
Dylan16807
933 days 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.
link
the8472
933 days 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.
link
Also fsync is a terrible API that should be replaced, but that's mostly a different topic.