Re: [squid-users] swap.state and perl unpack question

From: OTR Comm <otrcomm@dont-contact.us>
Date: Sun, 07 Mar 2004 23:52:50 -0700

Hello,

> Note: I meant store.log above.

Thank you for the clarification and your earlier help! I figured out
the unpacking, so I can read the records in swap.state now. I also
figured out how I can take the filenum and recreate the path to it
relative to ../var/cache.

$full_path = sprintf("%02X/%02X/%08X\n",
        ($filenum / $L2**2) % $L1,
        ($filenum / $L2) % $L2, $filenum);

where $L1=32 and $L2=512, since I have

cache_dir ufs /usr/local/squid/var/cache 500 32 512

The filenum, timestamp, and lastmod are important for another system
that I am working on, and now I can get to them, thank you,

Murrah Boswell
Received on Sun Mar 07 2004 - 23:52:59 MST

This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:01 MST