summaryrefslogtreecommitdiffstats
path: root/etc/ppp
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2002-03-11 19:13:22 +0000
committeriedowse <iedowse@FreeBSD.org>2002-03-11 19:13:22 +0000
commitcf446bea56795da1b463bad98883efc41181b48f (patch)
tree513042be847a836abbcbfd41ef542dbf397ea2d7 /etc/ppp
parenta5126a967f2db5a17f2668702a5fc8ac5726466a (diff)
downloadFreeBSD-src-cf446bea56795da1b463bad98883efc41181b48f.zip
FreeBSD-src-cf446bea56795da1b463bad98883efc41181b48f.tar.gz
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
Diffstat (limited to 'etc/ppp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud