Re: Reducing UFS corruption from unclean shutdowns?

From: Conrad Meyer <cem_at_freebsd.org>
Date: Fri, 21 Jun 2019 15:31:16 -0700
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
Received on Fri Jun 21 2019 - 20:31:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:21 UTC