Filesystems and crash resistance
Filesystems and crash resistance
Posted May 22, 2019 19:30 UTC (Wed) by ikm (guest, #493)Parent article: Filesystems and crash resistance
I'm surprised that crash resistance is linked to persistence here. I would argue that in an event of a crash what is much more important is consistency - I don't mind if I lose the latest changes to the file I'm editing, but I would be very upset if a file is left filled with all zeroes afterwards. If I lose just the latest changes, I can just redo the last several seconds of the work, but if the file is left in an inconsistent state, or worse it, wiped clean, *all* the work is lost. I've seen this happen many times with xfs, and never with ext4, for example. To me, those two filesystems seem to provide entirely different guarantees in practice, even though in theory maybe none of those are supposed to be guaranteed in the first place, as no fsync() may be called at all.