SU+J Lost files after a power failure

CeDeROM cederom at
Tue Oct 15 08:44:03 UTC 2013

On Mon, Oct 14, 2013 at 11:04 PM, Charles Swiger <cswiger at> wrote:
> First, unless you call fsync() before close() and your OS and/or drive hardware isn't being deceptive when fsync() returns about whether the bits have made it to permanent storage, then you might be surprised at just how long the unwritten buffers containing the last updates to the file data take to get properly flushed to disk.

Nice hint! Thank you! :-)


More information about the freebsd-questions mailing list