diff -r 2d65c2f76d7b -r 947f0dc9f7a8 userlibandfileserver/fileserver/sfat32/fat_config.cpp --- a/userlibandfileserver/fileserver/sfat32/fat_config.cpp Tue Feb 02 01:24:03 2010 +0200 +++ b/userlibandfileserver/fileserver/sfat32/fat_config.cpp Fri Apr 16 16:24:37 2010 +0300 @@ -64,7 +64,7 @@ //======================================================================================================================= -//-- FAT directory cache settings +//-- plain old FAT directory cache settings //======================================================================================================================= //-- FAT_DirCache , //-- e.g: FAT_DirCache 16,12 @@ -102,10 +102,10 @@ //======================================================================================================================= //-- A leaf directory cache for Fat volumes _LIT8(KPN_FAT_LeafDirCache, "FAT_LeafDirCacheSize"); -static const TUint32 KDef_KLeafDirCacheSize = 1; //-- default number of the most recently visited leaf dirs to be cached +static const TUint32 KDef_KLeafDirCacheSize = 32; //-- default number of the most recently visited leaf dirs to be cached //======================================================================================================================= -//-- New directory cache settings +//-- DP directory cache settings //======================================================================================================================= //-- New directory cache uses the global cache memory manager for dynamic size allocation _LIT8(KPN_FAT_DynamicDirCacheMin, "FAT_DirCacheSizeMin"); @@ -116,12 +116,6 @@ // maximal size Log2, 2^14 (16K) by default - - - - - - //######################################################################################################################## @@ -358,6 +352,7 @@ #ifdef _DEBUG ASSERT(iInitialised); + __PRINT(_L("\n\n")); __PRINT(_L("#>- TFatConfig parameters:\n")); DoDumpUintParam(KPN_ScanDrvSkipFinalisedVolume, iScanDrvSkipFinalisedVolume); @@ -376,6 +371,12 @@ DoDumpUintParam(_L8("FAT_32Cache RdGr Log2"), iFat32LRUCacheReadGrLog2); DoDumpUintParam(_L8("FAT_32Cache WrGr Log2"), iFat32LRUCacheWriteGrLog2); + + DoDumpUintParam(KPN_FAT_LeafDirCache, iLeafDirCacheSize); + DoDumpUintParam(KPN_FAT_DynamicDirCacheMin, iDynamicDirCacheSizeMinKB); + DoDumpUintParam(KPN_FAT_DynamicDirCacheMax, iDynamicDirCacheSizeMaxKB); + DoDumpUintParam(_L8("DynamicDirCacheMaxPageSizeLog2"), iDynamicDirCacheMaxPageSizeLog2); + __PRINT(_L("#>------ end -------<#\n\n")); #endif