Report correct cache size when -memcache is used.

This commit is contained in:
Nickolai Zeldovich 2002-05-21 07:35:57 +00:00
parent 31f658f450
commit c5222d45ec

View File

@ -245,7 +245,7 @@ afs_CacheInit(astatSize, afiles, ablocks, aDentries, aVolumes, achunk, aflags,
cm_initParams.cmi_nVolumeCaches = aVolumes;
cm_initParams.cmi_firstChunkSize = AFS_FIRSTCSIZE;
cm_initParams.cmi_otherChunkSize = AFS_OTHERCSIZE;
cm_initParams.cmi_cacheSize = ablocks;
cm_initParams.cmi_cacheSize = afs_cacheBlocks;
cm_initParams.cmi_setTime = afs_setTime;
cm_initParams.cmi_memCache = (aflags & AFSCALL_INIT_MEMCACHE) ? 1 : 0;