From owner-cvs-src@FreeBSD.ORG Thu Jan 3 12:28:58 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A561616A418; Thu, 3 Jan 2008 12:28:58 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7E5AF13C467; Thu, 3 Jan 2008 12:28:58 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m03CSwbn079902; Thu, 3 Jan 2008 12:28:58 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m03CSwTu079901; Thu, 3 Jan 2008 12:28:58 GMT (envelope-from kib) Message-Id: <200801031228.m03CSwTu079901@repoman.freebsd.org> From: Konstantin Belousov Date: Thu, 3 Jan 2008 12:28:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/ufs/ffs ffs_balloc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 03 Jan 2008 12:28:58 -0000 kib 2008-01-03 12:28:58 UTC FreeBSD src repository Modified files: sys/ufs/ffs ffs_balloc.c Log: ffs_balloc_ufsX() routines, in the case of recovering from the failed allocation, free the indirect blocks before clearing the disk pointers, that could lead to the softupdate inconsistencies in the case of the machine or disk crash at the wrong time. Rearrange the recover code to do the ffs_blkfree() after the second ffs_syncvnode(), that clears the pointers chain. Proposed and reviewed by: tegge Tested by: Peter Holm MFC after: 3 weeks Revision Changes Path 1.53 +16 -12 src/sys/ufs/ffs/ffs_balloc.c