From owner-cvs-all Thu May 17 0:24: 7 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1E4DE37B422; Thu, 17 May 2001 00:24:04 -0700 (PDT) (envelope-from mckusick@FreeBSD.org) Received: (from mckusick@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4H7O4L06079; Thu, 17 May 2001 00:24:04 -0700 (PDT) (envelope-from mckusick) Message-Id: <200105170724.f4H7O4L06079@freefall.freebsd.org> From: Kirk McKusick Date: Thu, 17 May 2001 00:24:03 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ffs ffs_softdep.c softdep.h src/sys/ufs/ufs ufs_extern.h ufs_lookup.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG mckusick 2001/05/17 00:24:03 PDT Modified files: sys/ufs/ffs ffs_softdep.c softdep.h sys/ufs/ufs ufs_extern.h ufs_lookup.c Log: When a new block is allocated to a directory, an fsync of a file whose name is within that block must ensure not only that the block containing the file name has been written, but also that the on-disk directory inode references that block. When a new directory block is created, we allocate a newdirblk structure which is linked to the associated allocdirect (on its ad_newdirblk list). When the allocdirect has been satisfied, the newdirblk structure is moved to the inodedep id_bufwait list of its directory to await the inode being written. When the inode is written, the directory entries are fully committed and can be deleted from their pagedep->id_pendinghd and inodedep->id_pendinghd lists. Revision Changes Path 1.95 +166 -22 src/sys/ufs/ffs/ffs_softdep.c 1.13 +50 -11 src/sys/ufs/ffs/softdep.h 1.35 +3 -3 src/sys/ufs/ufs/ufs_extern.h 1.49 +27 -7 src/sys/ufs/ufs/ufs_lookup.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message