3 ms·
OpenBSD has brought forth a patch earlier this month to try and make fsync(2) less of a mess to use on OpenBSD[1], though it hasn't been committed yet. [1] htt
by beefhash 8y ago
OpenBSD has brought forth a patch earlier this month to try and make fsync(2) less of a mess to use on OpenBSD[1], though it hasn't been committed yet.
[1] https://marc.info/?l=openbsd-tech&m=154897756917794&w=2 https://marc.info/?l=openbsd-tech&m=154897756917794&w=2
- anarazel 8y agoNote that that patch doesn't really fix the issue. You can write();close();open();fsync(); and you'll miss the issue if the OS failed during writeback before the open(). That's worse than on new-ish linux, where at least it'll only forget the error if there's a lot of memory pressure.