aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu/fs/ext2fs
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/gnu/fs/ext2fs
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/gnu/fs/ext2fs')
-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 3e7c67da8415..0fdaee2e93e9 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
/*