From owner-freebsd-current@FreeBSD.ORG Wed Dec 31 16:11:03 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CBBC16A4CE for ; Wed, 31 Dec 2003 16:11:03 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67B5C43D45 for ; Wed, 31 Dec 2003 16:11:01 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.3) with ESMTP id i010AmA7002562; Wed, 31 Dec 2003 16:10:48 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i010AmhI002561; Wed, 31 Dec 2003 16:10:48 -0800 Date: Wed, 31 Dec 2003 16:10:48 -0800 From: Brooks Davis To: Tim Kientzle Message-ID: <20040101001048.GA2212@Odin.AC.HMC.Edu> References: <20031229164130.GA797@pp.htv.fi> <16370.20382.81302.449649@canoe.dclg.ca> <16371.20373.212950.533985@canoe.dclg.ca> <20031231152453.G1441@bo.vpnaa.bet> <3FF35F60.1070803@acm.org> <16371.24594.660308.151100@canoe.dclg.ca> <3FF36393.6000109@acm.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <3FF36393.6000109@acm.org> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: Esa Karkkainen cc: "current@freebsd.org" cc: David Gilbert Subject: Re: 5.1-R-p11 unable to "sync disks" when shutting down X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2004 00:11:03 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable On Wed, Dec 31, 2003 at 04:02:27PM -0800, Tim Kientzle wrote: > David Gilbert wrote: > >>>>>>"Tim" =3D=3D Tim Kientzle writes: > > > >Tim> What's needed is some way for fsck to mark a filesystem as > >Tim> having a bgfsck in progress. Then fsck -F can check for that marke= r. > > > >Hrm. Isn't this done? Isn't there a 'special' snapshot created by > >the bgfsck process? Or does this snapshot evaporate (have no links)? >=20 > You've exceeded my expertise with that one. Also, using the > snapshot as a flag wouldn't be robust against errors in the snapshot > code itself. >=20 > I note that fsck_ffs sets a flag "needs foreground check" > if the background check fails. It might suffice to change the > logic just a bit: > * Set this flag when bg check starts > * Clear the flag when bg check succeeds >=20 > That would ensure that a foreground check > gets done if the system rebooted during the bg > check or if the bg check crashed for any reason. If this is done, it should be optional. There are plenty of reasons why I might not finish a bgfsck where a fgfsck isn't necessicary including simply rebooting to test a new kernel after a panic of the previous one. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --gKMricLos+KVdGMg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/82WHXY6L6fI4GtQRAuG6AJ4tkF9cuegDFx4wprRTwE4ik9NR3QCdH76e OQAB0ZfHOaQdivHK6zp7s78= =LOqb -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--