Skip to main content

fsync

fsync asks the operating system to make a file's buffered changes durable on its storage device before returning successfully.

For example, a database may call fsync before acknowledging a committed transaction so the write survives a power loss.

Share: