aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_softdep_stub.c
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2001-05-08 07:42:20 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2001-05-08 07:42:20 +0000
commit9ccb939ef0dd9c740a2486f2a982845b71c7076f (patch)
treefb504aff6a37ca8fb82f0f8c9fd384fdd81e5b16 /sys/ufs/ffs/ffs_softdep_stub.c
parent27b047acf0fad617ac49504dfdeef8242bfc36f9 (diff)
downloadsrc-9ccb939ef0dd9c740a2486f2a982845b71c7076f.tar.gz
src-9ccb939ef0dd9c740a2486f2a982845b71c7076f.zip
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.
Notes
Notes: svn path=/head/; revision=76357
Diffstat (limited to 'sys/ufs/ffs/ffs_softdep_stub.c')
-rw-r--r--sys/ufs/ffs/ffs_softdep_stub.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_softdep_stub.c b/sys/ufs/ffs/ffs_softdep_stub.c
index 95c947555661..3460b7c64967 100644
--- a/sys/ufs/ffs/ffs_softdep_stub.c
+++ b/sys/ufs/ffs/ffs_softdep_stub.c
@@ -270,6 +270,15 @@ int
softdep_slowdown(vp)
struct vnode *vp;
{
+
panic("softdep_slowdown called");
}
+
+void
+softdep_releasefile(ip)
+ struct inode *ip; /* inode with the zero effective link count */
+{
+
+ panic("softdep_releasefile called");
+}
#endif /* SOFTUPDATES not configured in */