News for hackers. Stuff that matters.
Re:Show HN: AtomicWrite: cross platform library for atomical... by joetucek on Tuesday March 13, 2018 @03:45AM (#16574398)
Your OS or filesystem may maintain a blacklist of lying devices (IIRC XFS does so), although such probably isn't exported to the user. Regardless, those blacklists are built via testing, and probably aren't comprehensive. If you absolutely positively must be assured your write is persisted, I recommend fsync, sync, waiting five minutes, fsync and sync again, then top it off with a prayer.

There are no comments on this comment yet.