Package: cachefilesd Version: 0.9-3 Severity: important Tags: upstream patch
Hi, During fairly basic usage of cachefilesd it managed to get into a situation where it filled up my /var/log with 1.2G worth of repetitive messages. Small snippet: Mar 31 22:21:34 slick cachefilesd[12652]: Scan complete Mar 31 22:22:04 slick cachefilesd[12652]: Refilling cull table Mar 31 22:22:04 slick cachefilesd[12652]: Scan complete Mar 31 22:22:34 slick cachefilesd[12652]: Refilling cull table Mar 31 22:22:34 slick cachefilesd[12652]: Scan complete Mar 31 22:23:04 slick cachefilesd[12652]: Refilling cull table Mar 31 22:23:04 slick cachefilesd[12652]: Scan complete Mar 31 22:23:34 slick cachefilesd[12652]: Refilling cull table Mar 31 22:23:34 slick cachefilesd[12652]: Scan complete Mar 31 22:24:04 slick cachefilesd[12652]: Refilling cull table Mar 31 22:24:04 slick cachefilesd[12652]: Scan complete Mar 31 22:24:04 slick cachefilesd[12652]: Decant (all 274) Mar 31 23:27:45 slick cachefilesd[12652]: Refilling cull table Mar 31 23:27:45 slick cachefilesd[12652]: Scan complete Mar 31 23:27:45 slick cachefilesd[12652]: Refilling cull table Mar 31 23:27:45 slick cachefilesd[12652]: Scan complete Mar 31 23:27:45 slick cachefilesd[12652]: Refilling cull table Mar 31 23:27:45 slick cachefilesd[12652]: Scan complete Mar 31 23:27:45 slick cachefilesd[12652]: Refilling cull table Mar 31 23:27:45 slick cachefilesd[12652]: Scan complete Mar 31 23:27:45 slick cachefilesd[12652]: Refilling cull table Mar 31 23:27:45 slick cachefilesd[12652]: Scan complete Please find attached a patch that prevents this problem by demoting these status updates to the ‘debug’ level. cheers, -- Wessel Dankers -- System Information: Debian Release: 6.0.1 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages cachefilesd depends on: ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib cachefilesd recommends no packages. cachefilesd suggests no packages. -- no debconf information
diff -ur cachefilesd-0.9,org/cachefilesd.c cachefilesd-0.9,new/cachefilesd.c --- cachefilesd-0.9,org/cachefilesd.c 2007-08-09 17:31:39.000000000 +0200 +++ cachefilesd-0.9,new/cachefilesd.c 2011-04-01 08:11:12.058804251 +0200 @@ -603,7 +603,7 @@ if (jumpstart_scan) { jumpstart_scan = 0; if (!stop && !scan) { - notice("Refilling cull table"); + debug(1, "Refilling cull table"); root.usage++; scan = &root; } @@ -1307,7 +1307,7 @@ scan = curr->parent; if (!scan) { - info("Scan complete"); + debug(1, "Scan complete"); decant_cull_table(); } @@ -1485,7 +1485,7 @@ if (!scan && oldest_build <= culltable_size / 2 + 2) { decant_cull_table(); - notice("Refilling cull table"); + debug(1, "Refilling cull table"); root.usage++; scan = &root; }
signature.asc
Description: Digital signature