[PATCH] Subtract sizes of added-then-rejected entries while loading ufs cache index

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Wed, 18 Jul 2012 18:09:55 -0600

Hi there,

    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. With this patch, we correctly account for both kinds of
entries.

The patch also removes some code duplication and fixes counts.objcount
maintenance.

TODO: Do not enter the validation loop in storeCleanup unless running
with -S. The loop does nothing useful when storeCleanupDoubleCheck() is
not called. I am not planning to work on that though so please feel free
to tackle it.

Thank you,

Alex.

Received on Thu Jul 19 2012 - 00:10:13 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 19 2012 - 12:00:03 MDT