From owner-cvs-all@FreeBSD.ORG Fri Feb 23 21:17:07 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 851A416A404; Fri, 23 Feb 2007 21:17:07 +0000 (UTC) (envelope-from brian@Awfulhak.org) Received: from storm.uk.FreeBSD.org (storm.uk.FreeBSD.org [194.242.157.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0712513C48E; Fri, 23 Feb 2007 21:17:06 +0000 (UTC) (envelope-from brian@Awfulhak.org) Received: from store.lan.Awfulhak.org (store.lan.Awfulhak.org [172.16.0.35]) by storm.uk.FreeBSD.org (8.13.8/8.13.8) with ESMTP id l1NLH5GI094600; Fri, 23 Feb 2007 21:17:05 GMT (envelope-from brian@Awfulhak.org) Received: from store.lan.Awfulhak.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id DDDC41957C5B; Fri, 23 Feb 2007 21:17:20 +0000 (GMT) Received: from gw.Awfulhak.org (gw.lan.Awfulhak.org [172.16.0.1]) by store.lan.Awfulhak.org (Postfix) with ESMTP id B16AE1957C4F; Fri, 23 Feb 2007 21:17:12 +0000 (GMT) Received: from conflict.ca.sophos.com (brian@localhost [127.0.0.1]) by gw.Awfulhak.org (8.13.8/8.13.8) with ESMTP id l1NLGstP063490; Fri, 23 Feb 2007 13:16:54 -0800 (PST) (envelope-from brian@Awfulhak.org) Date: Fri, 23 Feb 2007 13:16:54 -0800 From: Brian Somers To: Kris Kennaway Message-ID: <20070223131654.489d5ae6@conflict.ca.sophos.com> In-Reply-To: <20070223204112.GA88584@xor.obsecurity.org> References: <200702232023.l1NKNaeZ086158@repoman.freebsd.org> <20070223204112.GA88584@xor.obsecurity.org> X-Mailer: Claws Mail 2.7.2 (GTK+ 2.10.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED,SPF_HELO_PASS, SPF_PASS autolearn=failed version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on gw.lan.Awfulhak.org Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, Brian Somers , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/ufs/ffs ffs_alloc.c ffs_softdep.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2007 21:17:07 -0000 On Fri, 23 Feb 2007 15:41:12 -0500 Kris Kennaway wrote: > On Fri, Feb 23, 2007 at 08:23:36PM +0000, Brian Somers wrote: > > brian 2007-02-23 20:23:36 UTC > > > > FreeBSD src repository > > > > Modified files: > > sys/ufs/ffs ffs_alloc.c ffs_softdep.c > > Log: > > Account for di_blocks allocations when IN_SPACECOUNTED is set in an > > inode's i_flag. > > > > It's possible that after ufs_infactive() calls softdep_releasefile(), > > i_nlink stays >0 for a considerable amount of time (> 60 seconds here). > > During this period, any ffs allocation routines that alter di_blocks > > must also account for the blocks in the filesystem's fs_pendingblocks > > value. > > > > This change fixes an eventual df/du discrepency that will happen as > > the result of fs_pendingblocks being reduced to <0. > > > > The only manifestation of this that people may recognise is the > > following message on boot: > > > > /somefs: update error: blocks -N files M > > > > at which point the negative pending block count is adjusted to zero. > > \o/ I hate that bug! As do I! As a result of the bug, all Sophos mail appliance customers had to suffer bi-weekly reboots for the past year (well, it was hardly the fault of this bug initially!). It took weeks to fix -- I have never been able to reproduce the problem on demand and had to resort to inserting copious amounts of diagnostics on several machines then sitting around 'till ffsinfo said one of the machines had "bitten". Until recently, even that strategy didn't work as our test machines just wouldn't see the problem. We recently released a less powerful version of the appliance, and only then did we see the problem reasonably frequently (between 4 and 24 hours usually). -- Brian Somers Don't _EVER_ lose your sense of humour !