Hacker News new | ask | show | jobs
by ryao 517 days ago
Here is your barrier syscall:

https://www.man7.org/linux/man-pages/man2/sync.2.html

1 comments

That flushes, just like the fsync() system call mentioned in Luu's post.
It actually writes dirty data and then flushes.

That said, IO barriers in storage are typically synonymous with flushes. For example, the ext4 nobarrier mount option disables flushes.