diff -r e7d2d738d3c2 -r 2f92ad2dc5db userlibandfileserver/fileserver/sfat32/fat_config.cpp --- a/userlibandfileserver/fileserver/sfat32/fat_config.cpp Mon Mar 15 12:45:50 2010 +0200 +++ b/userlibandfileserver/fileserver/sfat32/fat_config.cpp Wed Mar 31 23:38:45 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