From owner-cvs-all Wed Apr 25 1:11:24 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 2EC7B37B423; Wed, 25 Apr 2001 01:11:20 -0700 (PDT) (envelope-from mckusick@FreeBSD.org) Received: (from mckusick@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3P8BKI09978; Wed, 25 Apr 2001 01:11:20 -0700 (PDT) (envelope-from mckusick) Message-Id: <200104250811.f3P8BKI09978@freefall.freebsd.org> From: Kirk McKusick Date: Wed, 25 Apr 2001 01:11:19 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_vnops.c src/sys/ufs/ffs ffs_snapshot.c ffs_vfsops.c src/sys/ufs/ufs ufs_vnops.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG mckusick 2001/04/25 01:11:19 PDT Modified files: sys/kern vfs_vnops.c sys/ufs/ffs ffs_snapshot.c ffs_vfsops.c sys/ufs/ufs ufs_vnops.c Log: When closing the last reference to an unlinked file, it is freed by the inactive routine. Because the freeing causes the filesystem to be modified, the close must be held up during periods when the filesystem is suspended. For snapshots to be consistent across crashes, they must write blocks that they copy and claim those written blocks in their on-disk block pointers before the old blocks that they referenced can be allowed to be written. Close a loophole that allowed unwritten blocks to be skipped when doing ffs_sync with a request to wait for all I/O activity to be completed. Revision Changes Path 1.115 +10 -1 src/sys/kern/vfs_vnops.c 1.15 +67 -18 src/sys/ufs/ffs/ffs_snapshot.c 1.150 +16 -7 src/sys/ufs/ffs/ffs_vfsops.c 1.163 +24 -4 src/sys/ufs/ufs/ufs_vnops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message