]> git.ipfire.org Git - thirdparty/squid.git/commit
Avoid bogus "Disk space over limit" warnings when rebuidling dirty ufs index.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 20 Jul 2012 23:11:02 +0000 (17:11 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 20 Jul 2012 23:11:02 +0000 (17:11 -0600)
commitc6e51affea3e95ccb8b267b2974171a485e1fac6
tree34673316d3a730aa671a065e8c05b1e9d283dc89
parent43f3d687fdb6fd87b416101decca42c4c3c181da
Avoid bogus "Disk space over limit" warnings when rebuidling dirty ufs index.

Subtract sizes of added-then-rejected entries while loading ufs cache index.

Before SMP changes, the ufs code was incorrectly ignoring the size of
loaded-but-not-yet-validated entries, leading to cache disk overflows.
After SMP changes, the ufs code was not subtracting sizes of
loaded-but-then-rejected entries, leading to bogus "Disk space over
limit" warnings. Now we correctly account for both kinds of entries.
src/fs/ufs/store_dir_ufs.cc
src/fs/ufs/ufscommon.cc
src/fs/ufs/ufscommon.h