In Linux, how to ensure my system write() calls (and similar write-IO calls/variants) reach non-volatile storage, bypassing memory/cache/buffered-IO?
In Linux, how to ensure my system write() calls (and similar write-IO calls/variants) reach
Share
See “Ensuring data reaches disk.”
In short, the safest policy is O_DIRECT + fsync() at appropriate points.