[OpenAFS] Force client to cache directory
Mon, 4 Jan 2010 13:14:09 -0500
On Mon, Jan 4, 2010 at 1:00 PM, Christof Hanke
> Am Montag, 4. Januar 2010 16:56:44 schrieb Gilles Martin:
>> I was wondering if it's possible to force caching a specific directory o=
>> client. For example by running a cron job regularly. The aim of this is
>> =A0that the client in case of server problem has an up to date version o=
>> =A0files in its cache. I didn't find any command in the cache manager th=
>> =A0does this, it's only possible to clear the cache, I would like to do =
>> =A0opposite, fill the cache !
> Well, why not do something like an "ls -l" as a cron-job on the client ?
> You just have to make sure, in case the ls-cmd is hanging, that you don't=
> it again.
> Calling this script by cron should work (not tested) :
> LS_CMD=3D"ls -l /afs/path"
> if [ `ps -eaf | grep -v grep | grep -c "$LS_CMD"` =3D=3D 0 ]; then
But that wouldn't keep the file contents up to date, would it?
There's been some discussion about implementing an "fs [un]pin"
feature (see http://www.dementia.org/twiki/bin/view/AFSLore/OpenAFSCachePin=
in conjunction with disconnected mode, but I don't know if there's
been any recent progress.