News for hackers. Stuff that matters.
Re:Show HN: AtomicWrite: cross platform library for atomical... by dis-sys on Tuesday March 13, 2018 @03:00AM (#16574282)
The title is pretty misleading, as already clearly mentioned by the author, the library is all about atomically _creating_ a file with specified content on disk, it is not about how to atomically append/update/delete files on disk.
Re:Show HN: AtomicWrite: cross platform library for atomical... by jeffreyrogers on Tuesday March 13, 2018 @10:49AM (#16576545)
That's a much harder problem and I don't think you can do it portably. In fact, I'm not sure of any filesystem that can make those guarantees.