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 usually yeah
might take more than one second for everything to be flushed though