From owner-cvs-src-old@FreeBSD.ORG Thu Dec 30 10:52:31 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EE06106564A for ; Thu, 30 Dec 2010 10:52:31 +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 8C9FF8FC08 for ; Thu, 30 Dec 2010 10:52:31 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oBUAqV2X084743 for ; Thu, 30 Dec 2010 10:52:31 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oBUAqVhE084742 for cvs-src-old@freebsd.org; Thu, 30 Dec 2010 10:52:31 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <201012301052.oBUAqVhE084742@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Thu, 30 Dec 2010 10:52:07 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/ufs/ffs ffs_softdep.c src/sys/ufs/ufs ufs_vnops.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2010 10:52:31 -0000 kib 2010-12-30 10:52:07 UTC FreeBSD src repository Modified files: sys/ufs/ffs ffs_softdep.c sys/ufs/ufs ufs_vnops.c Log: SVN rev 216818 on 2010-12-30 10:52:07Z by kib Handle missing jremrefs when a directory is renamed overtop of another, deleting it. If the directory is removed, UFS always need to remove the .. ref, even if the ultimate ref on the parent would not change. The new directory must have a new journal entry for that ref. Otherwise journal processing would not properly account for the parent's reference since it will belong to a removed directory entry. Change ufs_rename()'s dotdot rename section to always setup_dotdot_link(). In the tip != NULL case SUJ needs the newref dependency allocated via setup_dotdot_link(). Stop setting isrmdir to 2 for newdirrem() in softdep_setup_remove(). Remove the isdirrem > 1 checks from newdirrem(). Reported by: many Submitted by: jeff Tested by: pho Revision Changes Path 1.261 +5 -7 src/sys/ufs/ffs/ffs_softdep.c 1.324 +3 -1 src/sys/ufs/ufs/ufs_vnops.c