summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2001-05-08 07:42:20 +0000
committermckusick <mckusick@FreeBSD.org>2001-05-08 07:42:20 +0000
commitd8ef9cc3b5b9f5e2ab6ca2d6250d97259e791511 (patch)
treec2964ee297000fc02e38d8e3da2d627ff4ec7f81 /sys/gnu/fs
parent1be6156a3d0e1361a8aded14931c71b619cd3968 (diff)
downloadFreeBSD-src-d8ef9cc3b5b9f5e2ab6ca2d6250d97259e791511.zip
FreeBSD-src-d8ef9cc3b5b9f5e2ab6ca2d6250d97259e791511.tar.gz
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.
Diffstat (limited to 'sys/gnu/fs')
-rw-r--r--sys/gnu/fs/ext2fs/inode.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/gnu/fs/ext2fs/inode.h b/sys/gnu/fs/ext2fs/inode.h
index 3e7c67d..0fdaee2 100644
--- a/sys/gnu/fs/ext2fs/inode.h
+++ b/sys/gnu/fs/ext2fs/inode.h
@@ -125,10 +125,9 @@ struct inode {
#define IN_UPDATE 0x0004 /* Modification time update request. */
#define IN_MODIFIED 0x0008 /* Inode has been modified. */
#define IN_RENAME 0x0010 /* Inode is being renamed. */
-#define IN_SHLOCK 0x0020 /* File has shared lock. */
-#define IN_EXLOCK 0x0040 /* File has exclusive lock. */
-#define IN_HASHED 0x0080 /* Inode is on hash list */
-#define IN_LAZYMOD 0x0100 /* Modified, but don't write yet. */
+#define IN_HASHED 0x0020 /* Inode is on hash list */
+#define IN_LAZYMOD 0x0040 /* Modified, but don't write yet. */
+#define IN_SPACECOUNTED 0x0080 /* Blocks to be freed in free count. */
#ifdef _KERNEL
/*
OpenPOWER on IntegriCloud