Date: Tue, 8 May 2001 00:42:20 -0700 (PDT) From: Kirk McKusick <mckusick@FreeBSD.org> 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 Message-ID: <200105080742.f487gKX83668@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105080742.f487gKX83668>
