On Mon, Jan 4, 2010 at 1:00 PM, Christof Hanke
<[email protected]> wrote:
> Am Montag, 4. Januar 2010 16:56:44 schrieb Gilles Martin:
>> Hello,
>>
>> I was wondering if it's possible to force caching a specific directory on a
>> client. For example by running a cron job regularly. The aim of this is
>>  that the client in case of server problem has an up to date version of the
>>  files in its cache. I didn't find any command in the cache manager that
>>  does this, it's only possible to clear the cache, I would like to do the
>>  opposite, 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 call
> it again.
>
> Calling this script by cron should work (not tested) :
>
> #!/bin/sh
>
> LS_CMD="ls -l /afs/path"
> if [ `ps -eaf | grep -v grep | grep -c "$LS_CMD"` == 0 ]; then
>  $LS_CMD
> fi
>
>
> Cheers,
>
> Christof

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/OpenAFSCachePinning)
in conjunction with disconnected mode, but I don't know if there's
been any recent progress.

Marc
_______________________________________________
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to