Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 1999 05:15:33 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        dillon@apollo.backplane.com, phk@critter.freebsd.dk
Cc:        current@FreeBSD.ORG, sobomax@altavista.net
Subject:   Re: Sync(8) doesn't have any effect on softupdates-enabled filesystem
Message-ID:  <199908221915.FAA07442@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>So what do we do when we halt or reboot ?

We unmount the file system.  dounmount() calls VFS_SYNC() with the
MNT_WAIT flag, and then (for ffs) ffs_unmount() calls ffs_flushfiles()
or softdep_flushfiles().  I'm not sure why the latter is necessary.

I don't understand this problem.  sync() intentionally calls
VFS_SYNC() with the MNT_NOWAIT flag to stop it from waiting for
i/o to complete.  It's just an implementation quirk that i/o is
more likely to have completed when sync() returns for the non-
softdep case.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908221915.FAA07442>