userlibandfileserver/fileserver/sfat/fat_config.cpp
changeset 15 4122176ea935
parent 0 a41df078684a
--- a/userlibandfileserver/fileserver/sfat/fat_config.cpp	Mon Oct 19 15:55:17 2009 +0100
+++ b/userlibandfileserver/fileserver/sfat/fat_config.cpp	Mon Dec 21 16:14:42 2009 +0000
@@ -21,6 +21,14 @@
  @file
 */
 
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+//!!
+//!! WARNING!! DO NOT edit this file !! '\sfat' component is obsolete and is not being used. '\sfat32'replaces it
+//!!
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
 #include <f32fsys.h>
 
 #include "common_constants.h"
@@ -110,8 +118,8 @@
 //-- New directory cache uses the global cache memory manager for dynamic size allocation
 _LIT8(KPN_FAT_DynamicDirCacheMin, "FAT_DirCacheSizeMin"); 
 _LIT8(KPN_FAT_DynamicDirCacheMax, "FAT_DirCacheSizeMax"); 
-static const TUint32 KDef_DynamicDirCacheMin = 128;		// default minimum fat dir cache size in KB
-static const TUint32 KDef_DynamicDirCacheMax = 128;		// default maximum fat dir cache size in KB
+static const TUint32 KDef_DynamicDirCacheMin = 128;     // default minimum fat dir cache size in KB
+static const TUint32 KDef_DynamicDirCacheMax = 128;     // default maximum fat dir cache size in KB
 //-- default value for directory cache single page maximal size Log2, 2^14 (16K) by default
 static const TUint32 KDef_MaxDynamicDirCachePageSzLog2 = 14;
 
@@ -244,8 +252,8 @@
     iFAT16_UseCleanShutDownBit  = ReadUint(section, KPN_FAT16_UseCleanShutDownBit, KDef_FAT16_UseCleanShutDownBit);
 
     // If leaf dir cache is supported, read the configuration from estart.txt file
-    iLeafDirCacheSize			= ReadUint(section, KPN_FAT_LeafDirCache,  			KDef_KLeafDirCacheSize);
-    ProcessDynamicDirCacheParams(section);	//-- read dynamic dir cache parameters;
+    iLeafDirCacheSize           = ReadUint(section, KPN_FAT_LeafDirCache,           KDef_KLeafDirCacheSize);
+    ProcessDynamicDirCacheParams(section);  //-- read dynamic dir cache parameters;
 
     ProcessDirCacheParams(section); //-- read FAT directory cache parameters
     ProcessFatCacheParams(section); //-- read FAT cache parameters
@@ -262,22 +270,22 @@
     @param aSection section name, like "DriveX"
 */
 void TFatConfig::ProcessDynamicDirCacheParams(const TDesC8& aSection)
-	{
-	// we have to process the data in this file as the default values are all static variables, which means
-	//  their scope is limited within this file only.
+    {
+    // we have to process the data in this file as the default values are all static variables, which means
+    //  their scope is limited within this file only.
     iDynamicDirCacheMaxPageSizeLog2 = KDef_MaxDynamicDirCachePageSzLog2; 
     iDynamicDirCacheSizeMinKB = ReadUint(aSection, KPN_FAT_DynamicDirCacheMin, KDef_DynamicDirCacheMin);
     iDynamicDirCacheSizeMaxKB = ReadUint(aSection, KPN_FAT_DynamicDirCacheMax, KDef_DynamicDirCacheMax);
 
     // if less than default values, set to default values
     if (iDynamicDirCacheSizeMinKB < KDef_DynamicDirCacheMin)
-    	iDynamicDirCacheSizeMinKB = KDef_DynamicDirCacheMin;
+        iDynamicDirCacheSizeMinKB = KDef_DynamicDirCacheMin;
     if (iDynamicDirCacheSizeMaxKB < KDef_DynamicDirCacheMax)
-    	iDynamicDirCacheSizeMaxKB = KDef_DynamicDirCacheMax;
+        iDynamicDirCacheSizeMaxKB = KDef_DynamicDirCacheMax;
 
     // validate settings for those values that the default values does not apply onto them
     __ASSERT_ALWAYS(iDynamicDirCacheSizeMinKB <= iDynamicDirCacheSizeMaxKB, Fault(EFatBadParameter));
-	}
+    }
 
 /** 
     process directory cache parameters 
@@ -345,7 +353,7 @@
 TUint32 TFatConfig::ReadUint(const TDesC8& aSection, const TDesC8& aKeyName, TUint32 aDefaultValue) const
     {
     TInt32 val = aDefaultValue;
-	// coverity[check_return] coverity[unchecked_value]
+    // coverity[check_return] coverity[unchecked_value]
     F32Properties::GetInt(aSection, aKeyName, val);
 
     return val;