RE: [squid-users] some Squid implementation questions?

From: <Sadhna.Ahuja@dont-contact.us>
Date: Wed, 13 Jun 2001 16:53:26 -0500

Hi,

>
> > 2. How is the Config.cacheSwap structure initialized every
> time Squid is
> > run?
>
> When squid.conf is parsed, and a cache_dir line is seen.

The cache_dir line only provides the sd->path, sd->max_size, sd->u.ufs.l1
and sd->u.ufs.l2, where sd = Config.cacheSwap.swapDirs[i]. But how is the
cacheSwap struct (swapDirs, n_allocated & n_configured) initialized?

In other words, in the function storeUfsDirParse(), do you always call
allocate_new_swapdir() ? (That would happen if swap->n_configured is zero).

> But how is the actual data on the
> physical disk
> > deleted?
>
> By the call to storeUnlink in storeRelease, the line before where the
> bit in the file_map is cleared.
>

storeUnlink() calls storeUfsUnlink(), which in turn, calls unlinkdUnlink().
This whole routine is bounded by #if USE_UNLINKD. Is USE_UNLINKD *always*
defined?

Thanks for your help,
Sadhna.
Received on Wed Jun 13 2001 - 15:53:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:44 MST