does fsync(2) do anything or is it placebo? my use case is making sure a file is properly written when i expect the system to crash within (potentially less than) a second or so
@lizzy in particular, sqlite assumes that it works. from https://sqlite.org/atomiccommit.html#_hardware_assumptions :
"SQLite assumes that the operating system that it is running on works as advertised. If that is not quite the case, well then hopefully you will not lose power too often."
