From owner-freebsd-current Sun Aug 22 12:17:22 1999 Delivered-To: freebsd-current@freebsd.org Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (Postfix) with ESMTP id 706ED14C03 for ; Sun, 22 Aug 1999 12:17:06 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id FAA07442; Mon, 23 Aug 1999 05:15:33 +1000 Date: Mon, 23 Aug 1999 05:15:33 +1000 From: Bruce Evans Message-Id: <199908221915.FAA07442@godzilla.zeta.org.au> To: dillon@apollo.backplane.com, phk@critter.freebsd.dk Subject: Re: Sync(8) doesn't have any effect on softupdates-enabled filesystem Cc: current@FreeBSD.ORG, sobomax@altavista.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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