Reducing UFS corruption from unclean shutdowns?

Conrad Meyer cem at freebsd.org
Fri Jun 21 22:31:36 UTC 2019


On Fri, Jun 21, 2019 at 2:55 PM Alan Somers <asomers at freebsd.org> wrote:
> I would've thought that immediately following a sync(8), the
> filesystem would be consistent.  Why do I still see errors after a
> panic in files that were written before I sync()ed?
> -Alan

Hi Alan,

Contra the name, sync(2) (sync(8)) isn't synchronous.  It invokes
VFS_SYNC() with MNT_NOWAIT across all mountpoints.

Cheers,
Conrad


More information about the freebsd-current mailing list