Coda File System

Re: lookaside cache

From: Jan Harkes <jaharkes_at_cs.cmu.edu>
Date: Mon, 30 Jun 2003 16:08:17 -0400
On Sat, Jun 28, 2003 at 02:23:26PM -0700, Steve Simitzis wrote:
> so now i have two directories: venus.cache and venus.cache.prev.
> venus.cache.prev is where the original cache lives, and is referenced
> by the lookaside cache index that i created.
> 
> my question is, is it safe to remove venus.cache.prev at any point?
> should i do cfs lka --clear before i remove venus.cache.prev?

No problem, you can do anything to it. Whenever venus get's a lookaside
hit, it tries to copy the file and validates whether the SHA checksum is
unchanged. If the copy fails, or the checksum doesn't match the file is
simply fetched from the servers.

So if you remove venus.cache.prev and the lka database returns a hit,
the copy will fail and venus simply fetches the file from the server(s).
At least that's what it is supposed to do :)

Jan
Received on 2003-06-30 16:09:40