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
@[email protected] For that you need the O_PONIES flag.

More seriously, it's complicated and very filesystem dependent. See:
https://lwn.net/Articles/351422/
POSIX v. reality: A position on O_PONIES

Sure, programmers (especially operating systems programmers) love their specifications. Clean, [...]

LWN.net
@[email protected] The article is old so maybe things are better now? But I don't really know.