aboutsummaryrefslogtreecommitdiff
path: root/etc/newsyslog.conf
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-03-11 19:13:22 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-03-11 19:13:22 +0000
commit23bd68a4261836dd20f7d0a5bc886b27544b2642 (patch)
tree513042be847a836abbcbfd41ef542dbf397ea2d7 /etc/newsyslog.conf
parenta2df0b493e37d61dc964ede2af330b9f2a6448e5 (diff)
downloadsrc-23bd68a4261836dd20f7d0a5bc886b27544b2642.tar.gz
src-23bd68a4261836dd20f7d0a5bc886b27544b2642.zip
Fix a bug in ufsdirhash_adjfree() that caused it to incorrectly
update the free-space statistics in some cases. The problem affected directory blocks when the free space dropped below the size of the maximum allowed entry size. When this happened, the free-space summary information could claim that there are no further blocks that can fit a maximum-size entry, even if there are. The effect of this bug is that the directory may be enlarged even though there is space within the directory for the new entry. This wastes disk space and has a negative impact on performance. Fix it by correctly computing the dh_firstfree array index, adding a helper macro for clarity. Put an extra sanity check into ufsdirhash_checkblock() to detect the situation in future. Found by: dwmalone Reviewed by: dwmalone MFC after: 1 week
Notes
Notes: svn path=/head/; revision=92098
Diffstat (limited to 'etc/newsyslog.conf')
0 files changed, 0 insertions, 0 deletions