[OpenAFS] clarification on client caches

Derrick J Brashear shadow@dementia.org
Thu, 9 Sep 2004 15:45:30 -0400 (EDT)


On Thu, 9 Sep 2004, Jim Rees wrote:

> It pretty much has to be those u_int types in
> afs_dcache.c:afs_CacheTruncateDaemon(), right?  Have you tried changing them
> to afs_uint64?

for other reasons i'm playing in this code now.

maybe i should try that; i should also rewrite afs_GetDownD to possibly be 
dynamic and not have fixed maxatonce.

> There may be other problems too but that would be a good start.
>
> Yes, the arithmetic is mostly on blocks, not bytes.  But there a couple
> places where blocks are multiplied by 100 to get percent.  Easier to just do
> all the arithmetic in 64 bits and not have to worry about it.
>
> If this turns out to be the correct fix, it might have to be made
> conditional on AFS_64BIT_ENV.