Squid-2.2.STABLE3: Switch back to unlink instead of truncate Switch back to unlink instead of truncate when releasing cache files. There are some known problems with the use of truncate: * Very much increased inode usage (slightly more than doubled) * Additional race conditions when storing files, which theoretically can cause corrupted cache files if a file is reused while being truncated. Index: squid/src/defines.h diff -u squid/src/defines.h:1.1.1.23.10.2 squid/src/defines.h:1.1.1.23.10.3 --- squid/src/defines.h:1.1.1.23.10.2 Thu May 20 00:56:42 1999 +++ squid/src/defines.h Tue Jun 22 23:16:47 1999 @@ -277,4 +277,4 @@ #define _PATH_DEVNULL "/dev/null" #endif -#define USE_TRUNCATE_NOT_UNLINK 1 +#define USE_TRUNCATE_NOT_UNLINK 0