Re: [SQU] cache_dir disk space problem

From: Markus Stumpf <maex-squid-users@dont-contact.us>
Date: Tue, 14 Nov 2000 17:28:12 +0100

On Thu, Nov 09, 2000 at 10:24:56AM +0100, Jens-S. Voeckler wrote:
> On Thu, 9 Nov 2000, Robert Collins wrote:
>
> ]> ] If I shutdown squid and do a: echo "" >/cache/swap.state
> ]> ] will squid delete the old cache files itself?
> ]>
> ]> Though it will give Squid an empty cache, the procedure might still lead
> ]> to problems, if you exceed your file system limit, e.g. the first files
> ]> from the old cache are small and the first new files are large.
> ]
> ]It will NOT give an empty cache. Squid REBUILDS the swap.state in this
> ]instance.
>
> You are right. I am sorry. When did that change? (no answer necessary).

From my experience yesterday and a look at the code this is NOT TRUE!
IMHO the FAQ is wrong.
     echo "" >/cache/swap.state
will give a one byte sized file but squid (2.3ST4) checks for a 0 byte file
to decide whether to reindex. Otherwise is just reports "0 objects found".

        \Maex

-- 
SpaceNet GmbH             |   http://www.Space.Net/   | Stress is when you wake
Research & Development    | mailto:maex-sig@Space.Net | up screaming and you
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0    | realize you haven't
D-80807 Muenchen          |  Fax: +49 (89) 32356-299  | fallen asleep yet.
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Nov 14 2000 - 10:28:23 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:56:22 MST