[OpenAFS] clarification on client caches

Derek Atkins warlord@MIT.EDU
Fri, 10 Sep 2004 08:57:56 -0400


Why would it need to be conditional on AFS_64BIT_ENV?  Linux supports
the "long long" 64-bit integer type natively in the 32bit OS just fine.

-derek

Jim Rees <rees@umich.edu> writes:

> 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?
>
> 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.
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>
>

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available