62 _LIT8(KPN_FAT16_UseCleanShutDownBit,"FAT16_UseCleanShutDownBit"); //-- parameter key name |
62 _LIT8(KPN_FAT16_UseCleanShutDownBit,"FAT16_UseCleanShutDownBit"); //-- parameter key name |
63 static const TUint32 KDef_FAT16_UseCleanShutDownBit = 1; //-- parameter default value |
63 static const TUint32 KDef_FAT16_UseCleanShutDownBit = 1; //-- parameter default value |
64 |
64 |
65 |
65 |
66 //======================================================================================================================= |
66 //======================================================================================================================= |
67 //-- FAT directory cache settings |
67 //-- plain old FAT directory cache settings |
68 //======================================================================================================================= |
68 //======================================================================================================================= |
69 //-- FAT_DirCache <CacheSizeKB>,<Log2(max page size)> |
69 //-- FAT_DirCache <CacheSizeKB>,<Log2(max page size)> |
70 //-- e.g: FAT_DirCache 16,12 |
70 //-- e.g: FAT_DirCache 16,12 |
71 _LIT8(KPN_FAT_DirCache, "FAT_DirCache"); |
71 _LIT8(KPN_FAT_DirCache, "FAT_DirCache"); |
72 |
72 |
100 //======================================================================================================================= |
100 //======================================================================================================================= |
101 //-- FAT leaf directory cache settings |
101 //-- FAT leaf directory cache settings |
102 //======================================================================================================================= |
102 //======================================================================================================================= |
103 //-- A leaf directory cache for Fat volumes |
103 //-- A leaf directory cache for Fat volumes |
104 _LIT8(KPN_FAT_LeafDirCache, "FAT_LeafDirCacheSize"); |
104 _LIT8(KPN_FAT_LeafDirCache, "FAT_LeafDirCacheSize"); |
105 static const TUint32 KDef_KLeafDirCacheSize = 1; //-- default number of the most recently visited leaf dirs to be cached |
105 static const TUint32 KDef_KLeafDirCacheSize = 32; //-- default number of the most recently visited leaf dirs to be cached |
106 |
106 |
107 //======================================================================================================================= |
107 //======================================================================================================================= |
108 //-- New directory cache settings |
108 //-- DP directory cache settings |
109 //======================================================================================================================= |
109 //======================================================================================================================= |
110 //-- New directory cache uses the global cache memory manager for dynamic size allocation |
110 //-- New directory cache uses the global cache memory manager for dynamic size allocation |
111 _LIT8(KPN_FAT_DynamicDirCacheMin, "FAT_DirCacheSizeMin"); |
111 _LIT8(KPN_FAT_DynamicDirCacheMin, "FAT_DirCacheSizeMin"); |
112 _LIT8(KPN_FAT_DynamicDirCacheMax, "FAT_DirCacheSizeMax"); |
112 _LIT8(KPN_FAT_DynamicDirCacheMax, "FAT_DirCacheSizeMax"); |
113 static const TUint32 KDef_DynamicDirCacheMin = 128; // default minimum fat dir cache size in KB |
113 static const TUint32 KDef_DynamicDirCacheMin = 128; // default minimum fat dir cache size in KB |
114 static const TUint32 KDef_DynamicDirCacheMax = 256; // default maximum fat dir cache size in KB |
114 static const TUint32 KDef_DynamicDirCacheMax = 256; // default maximum fat dir cache size in KB |
115 static const TUint32 KDef_MaxDynamicDirCachePageSzLog2 = 14; // default value for directory cache single page |
115 static const TUint32 KDef_MaxDynamicDirCachePageSzLog2 = 14; // default value for directory cache single page |
116 // maximal size Log2, 2^14 (16K) by default |
116 // maximal size Log2, 2^14 (16K) by default |
117 |
117 |
118 |
118 |
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 |
|
125 //######################################################################################################################## |
119 //######################################################################################################################## |
126 |
120 |
127 |
121 |
128 |
122 |
129 //----------------------------------------------------------------------------- |
123 //----------------------------------------------------------------------------- |
356 void TFatConfig::DumpParameters() const |
350 void TFatConfig::DumpParameters() const |
357 { |
351 { |
358 #ifdef _DEBUG |
352 #ifdef _DEBUG |
359 |
353 |
360 ASSERT(iInitialised); |
354 ASSERT(iInitialised); |
|
355 __PRINT(_L("\n\n")); |
361 __PRINT(_L("#>- TFatConfig parameters:\n")); |
356 __PRINT(_L("#>- TFatConfig parameters:\n")); |
362 |
357 |
363 DoDumpUintParam(KPN_ScanDrvSkipFinalisedVolume, iScanDrvSkipFinalisedVolume); |
358 DoDumpUintParam(KPN_ScanDrvSkipFinalisedVolume, iScanDrvSkipFinalisedVolume); |
364 DoDumpUintParam(KPN_FAT32_AsynchMount, iFAT32_AsynchMount); |
359 DoDumpUintParam(KPN_FAT32_AsynchMount, iFAT32_AsynchMount); |
365 DoDumpUintParam(KPN_FAT32_UseFsInfoOnMount, iFAT32_UseFSInfoOnMount); |
360 DoDumpUintParam(KPN_FAT32_UseFsInfoOnMount, iFAT32_UseFSInfoOnMount); |
373 DoDumpUintParam(_L8("FAT_16Cache WrGr Log2"), iFat16FixedCacheWriteGrLog2); |
368 DoDumpUintParam(_L8("FAT_16Cache WrGr Log2"), iFat16FixedCacheWriteGrLog2); |
374 |
369 |
375 DoDumpUintParam(_L8("FAT_32Cache Size, KB"), iFat32LRUCacheSizeKB); |
370 DoDumpUintParam(_L8("FAT_32Cache Size, KB"), iFat32LRUCacheSizeKB); |
376 DoDumpUintParam(_L8("FAT_32Cache RdGr Log2"), iFat32LRUCacheReadGrLog2); |
371 DoDumpUintParam(_L8("FAT_32Cache RdGr Log2"), iFat32LRUCacheReadGrLog2); |
377 DoDumpUintParam(_L8("FAT_32Cache WrGr Log2"), iFat32LRUCacheWriteGrLog2); |
372 DoDumpUintParam(_L8("FAT_32Cache WrGr Log2"), iFat32LRUCacheWriteGrLog2); |
|
373 |
|
374 |
|
375 DoDumpUintParam(KPN_FAT_LeafDirCache, iLeafDirCacheSize); |
|
376 DoDumpUintParam(KPN_FAT_DynamicDirCacheMin, iDynamicDirCacheSizeMinKB); |
|
377 DoDumpUintParam(KPN_FAT_DynamicDirCacheMax, iDynamicDirCacheSizeMaxKB); |
|
378 DoDumpUintParam(_L8("DynamicDirCacheMaxPageSizeLog2"), iDynamicDirCacheMaxPageSizeLog2); |
378 |
379 |
379 __PRINT(_L("#>------ end -------<#\n\n")); |
380 __PRINT(_L("#>------ end -------<#\n\n")); |
380 |
381 |
381 #endif |
382 #endif |
382 } |
383 } |