Re: How does NetBSD handle fsync() that incurs I/O errors?

2018-03-31 Thread Michael van Elst
rhia...@falu.nl (Rhialto) writes: >Can I at least hope that if fsync() returns an error, and the device >doesn't recover, that next attempts to fsync() keep reporting the error? No. The data is lost and the next fsync will only report a failure if the new fsync operation fails. Even worse, if

Re: How does NetBSD handle fsync() that incurs I/O errors?

2018-03-31 Thread Rhialto
On Fri 30 Mar 2018 at 20:27:49 +0200, Jaromír Dole?ek wrote: > There is nothing really what the system can do if the hardware keeps > errorring out the I/O - the system can't know if the hardware recovers, > and frankly the application calling fsync() even less. System must free the > resources,