News for hackers. Stuff that matters.
Re:Show HN: AtomicWrite: cross platform library for atomical... by zaarn on Tuesday March 13, 2018 @03:46AM (#16574406)
You're at the mercy of the disk.

The best you can do is assume that anyone who uses your application in production will have enterprise hardware, those (usually) don't lie about fsync (consumer hdd's are somewhat likely to do this)

I've also not yet run across a SSD that lies about fsync.

The disappointing thing is that most filesystems also blindly assume this. Ext4 is somewhat robust by design but I've heard of atleast one time where a (very) cheap consumer harddisk trashed any filesystem on crash, including ZFS to the point of becoming unmountable.

Re:Show HN: AtomicWrite: cross platform library for atomical... by michaelmior on Tuesday March 13, 2018 @04:51AM (#16574611)
Did you mean lie about fsync?
Re:Show HN: AtomicWrite: cross platform library for atomical... by zaarn on Tuesday March 13, 2018 @04:54AM (#16574621)
hmm, yes, thanks.

My spelling can go bad when I type a bit fast.