From owner-cvs-all Tue May 8 0:42: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 EEC6F37B42C; Tue, 8 May 2001 00:42:20 -0700 (PDT) (envelope-from mckusick@FreeBSD.org) Received: (from mckusick@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f487gKX83668; Tue, 8 May 2001 00:42:20 -0700 (PDT) (envelope-from mckusick) Message-Id: <200105080742.f487gKX83668@freefall.freebsd.org> From: Kirk McKusick Date: Tue, 8 May 2001 00:42:20 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ffs fs.h softdep.h ffs_softdep.c ffs_softdep_stub.c ffs_inode.c ffs_vfsops.c src/sys/ufs/ufs ufs_extern.h inode.h ufs_inode.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG mckusick 2001/05/08 00:42:20 PDT Modified files: sys/ufs/ffs fs.h softdep.h ffs_softdep.c ffs_softdep_stub.c ffs_inode.c ffs_vfsops.c sys/ufs/ufs ufs_extern.h inode.h ufs_inode.c Log: When running with soft updates, track the number of blocks and files that are committed to being freed and reflect these blocks in the counts returned by statfs (and thus also by the `df' command). This change allows programs such as those that do news expiration to know when to stop if they are trying to create a certain percentage of free space. Note that this change does not solve the much harder problem of making this to-be-freed space available to applications that want it (thus on a nearly full filesystem, you may still encounter out-of-space conditions even though the free space will show up eventually). Hopefully this harder problem will be the subject of a future enhancement. Revision Changes Path 1.22 +4 -2 src/sys/ufs/ffs/fs.h 1.12 +6 -3 src/sys/ufs/ffs/softdep.h 1.94 +59 -2 src/sys/ufs/ffs/ffs_softdep.c 1.16 +10 -1 src/sys/ufs/ffs/ffs_softdep_stub.c 1.71 +3 -1 src/sys/ufs/ffs/ffs_inode.c 1.153 +37 -4 src/sys/ufs/ffs/ffs_vfsops.c 1.34 +2 -1 src/sys/ufs/ufs/ufs_extern.h 1.34 +4 -5 src/sys/ufs/ufs/inode.h 1.36 +3 -1 src/sys/ufs/ufs/ufs_inode.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message