]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 3068: cache_dir capacity and usage overflows
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 4 Dec 2010 16:23:14 +0000 (09:23 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 4 Dec 2010 16:23:14 +0000 (09:23 -0700)
commit7c7b952e676ef4b435cbb5b0c862de774c675536
tree1ca1446fff30cf3fe5aa98d6a4a9e800d48de011
parent3acd07ac025f0ff1cd4c2145fffed9b85237256b
Bug 3068: cache_dir capacity and usage overflows

Makes usage calculations use size_t instead of int and updates the
relevant fields storing the cache_dir capacity and usage fields as well.

This fixes Squid filling cache_dir with files >2GB in size.
Also allows Squid to store more than 2TB of data total in one dir.
13 files changed:
src/SquidMath.cc
src/SquidMath.h
src/Store.h
src/StoreHashIndex.h
src/SwapDir.cc
src/SwapDir.h
src/fs/coss/store_dir_coss.cc
src/fs/ufs/store_dir_ufs.cc
src/store_dir.cc
src/tests/TestSwapDir.cc
src/tests/TestSwapDir.h
src/tests/testStore.cc
src/tests/testStore.h