From owner-cvs-src@FreeBSD.ORG Mon Feb 21 06:09:11 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E36416A4CE; Mon, 21 Feb 2005 06:09:11 +0000 (GMT) Received: from VARK.MIT.EDU (VARK.MIT.EDU [18.95.3.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C50243D1F; Mon, 21 Feb 2005 06:09:10 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.MIT.EDU (localhost [127.0.0.1]) by VARK.MIT.EDU (8.13.3/8.13.1) with ESMTP id j1L68ivl000720; Mon, 21 Feb 2005 01:08:44 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.MIT.EDU (8.13.3/8.13.1/Submit) id j1L68iSN000719; Mon, 21 Feb 2005 01:08:44 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Mon, 21 Feb 2005 01:08:44 -0500 From: David Schultz To: Xin LI Message-ID: <20050221060844.GA700@VARK.MIT.EDU> Mail-Followup-To: Xin LI , Xin LI , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200502200802.j1K82G2M003470@repoman.freebsd.org> <20050220231711.GA8172@VARK.MIT.EDU> <1108955636.624.16.camel@spirit> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii:iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1108955636.624.16.camel@spirit> cc: cvs-src@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: Xin LI cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/fsck_ffs fsck.h pass5.c src/sys/ufs/ffs ffs_alloc.c ffs_softdep.c fs.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 06:09:11 -0000 On Mon, Feb 21, 2005, Xin LI wrote: > 在 2005-02-20日的 18:17 -0500,David Schultz写道: > > > Since the summary is already re-sync'ed every 30 second, we will > > > not lag behind too much after a crash. With this consideration > > > in mind, it is more reasonable to transfer the responsibility to > > > background fsck, to reduce the delay after a crash. > > > > I'm not sure that I completely buy this explanation. If an > > application has a 1 GB temporary file open and unlinked at the > > time of the crash, then upon reboot, this change will make it seem > > as though I have 1 GB less space than I really do. This could > > lead to spurious disk full errors. (Or will that happen anyway if > > bgfsck hasn't recomputed all the free block bitmaps yet?) > > Hmm... Maybe we should add some constraint on this, for example, for > volumes that fssize < 20G do the recomputation at mount time, despite > the vfs.ffs.compute_summary_at_mount setting? I think the situation > only happens when bgfsck have not finished the scan yet, and on smaller > volumes, this should not affect so much (after all, we can always set > vfs.ffs.compute_summary_at_mount = 1 to restore the old behavior). > > Should I send a HEADSUP / update UPDATING so more people will know the > change? No, I don't think any major warnings or notices are needed. For about two years, IIRC, the SoftUpdates implementation would report spurious disk full errors when the disk was close to full, a large file was deleted, and another large file was immediately created, but practically nobody noticed at the time. I think practically nobody will notice your change either, except that they'll be glad that the time required to boot after a crash has dropped dramatically. ;-) A note in the fsck manpage couldn't hurt, though.