32 #include <e32const_private.h> |
32 #include <e32const_private.h> |
33 #include "sf_plugin.h" |
33 #include "sf_plugin.h" |
34 #include "sf_func.h" |
34 #include "sf_func.h" |
35 #include <F32plugin.h> |
35 #include <F32plugin.h> |
36 #include "f32trace.h" |
36 #include "f32trace.h" |
37 #include <utraceefile.h> |
|
38 |
37 |
39 #define __PRINT1TEMP_ALWAYS(t,a) {{TBuf<KMaxFileName>temp(a);RDebug::Print(t,&temp);}} |
38 #define __PRINT1TEMP_ALWAYS(t,a) {{TBuf<KMaxFileName>temp(a);RDebug::Print(t,&temp);}} |
40 #define __PRINT2TEMP_ALWAYS(t,a,b) {{TBuf<KMaxFileName>temp(b);RDebug::Print(t,a,&temp);}} |
39 #define __PRINT2TEMP_ALWAYS(t,a,b) {{TBuf<KMaxFileName>temp(b);RDebug::Print(t,a,&temp);}} |
41 #define __PRINT3TEMP_ALWAYS(t,a,b,c) {{TBuf<KMaxFileName>temp(c);RDebug::Print(t,a,b,&temp);}} |
40 #define __PRINT3TEMP_ALWAYS(t,a,b,c) {{TBuf<KMaxFileName>temp(c);RDebug::Print(t,a,b,&temp);}} |
42 #define __PRINT4TEMP_ALWAYS(t,a,b,c,d) {{TBuf<KMaxFileName>temp(d);RDebug::Print(t,a,b,c,&temp);}} |
41 #define __PRINT4TEMP_ALWAYS(t,a,b,c,d) {{TBuf<KMaxFileName>temp(d);RDebug::Print(t,a,b,c,&temp);}} |
141 //-- It is 2G-1. Used in legacy code that does not understand RFile64 |
140 //-- It is 2G-1. Used in legacy code that does not understand RFile64 |
142 const TUint64 KMaxLegacyFileSize = 0x7fffffff; |
141 const TUint64 KMaxLegacyFileSize = 0x7fffffff; |
143 |
142 |
144 //-- absolute maximum file size that file server supports |
143 //-- absolute maximum file size that file server supports |
145 const TUint64 KMaxSupportedFileSize = KMaxTUint64; |
144 const TUint64 KMaxSupportedFileSize = KMaxTUint64; |
|
145 |
|
146 //-- this is a speculative value of a min. amount of free space on the volume necessary to create a file, directory etc. |
|
147 //-- it is used mostly in "reserve drive space" functionality, which is, actually, fundamentally flawed. |
|
148 //-- the problem is that the file server can't know exactly how much space is required to create some fs object on the volume, |
|
149 //-- so, it has to guess. This is a default "sector size" value; the file system can round it up internally to its cluster size if any. |
|
150 const TInt KMinFsCreateObjTreshold = KDefaultVolumeBlockSize; |
|
151 |
146 |
152 |
147 //__DATA_CAGING__ |
153 //__DATA_CAGING__ |
148 const TUint SHA1_LBLOCK=16; |
154 const TUint SHA1_LBLOCK=16; |
149 const TUint SHA1_HASH=20; |
155 const TUint SHA1_HASH=20; |
150 #if defined(_DEBUG) || defined(_DEBUG_RELEASE) |
156 #if defined(_DEBUG) || defined(_DEBUG_RELEASE) |
1703 extern CServerFs* TheFileServer; |
1709 extern CServerFs* TheFileServer; |
1704 |
1710 |
1705 extern HBufC* TheDriveNames[]; |
1711 extern HBufC* TheDriveNames[]; |
1706 extern TDrive TheDrives[KMaxDrives]; |
1712 extern TDrive TheDrives[KMaxDrives]; |
1707 extern TFileName TheDefaultPath; |
1713 extern TFileName TheDefaultPath; |
1708 extern RFTrace TheFtrace; |
|
1709 |
1714 |
1710 extern SCapabilitySet AllCapabilities; |
1715 extern SCapabilitySet AllCapabilities; |
1711 extern SCapabilitySet DisabledCapabilities; |
1716 extern SCapabilitySet DisabledCapabilities; |
1712 |
1717 |
1713 const TInt KDispatchObjectClose=KMaxTInt-1; |
1718 const TInt KDispatchObjectClose=KMaxTInt-1; |
1837 extern HBufC* gCorruptFileNamesListFile; |
1842 extern HBufC* gCorruptFileNamesListFile; |
1838 #endif |
1843 #endif |
1839 |
1844 |
1840 typedef TPckgBuf<TMediaPswdReplyNotifyInfoV1> TMediaPswdReplyNotifyInfoV1Buf; |
1845 typedef TPckgBuf<TMediaPswdReplyNotifyInfoV1> TMediaPswdReplyNotifyInfoV1Buf; |
1841 |
1846 |
1842 #if defined(__WINS__) |
|
1843 TInt MapWindowsFileName(TDes& aBuffer,const TDesC& aFileName); |
|
1844 #endif |
|
1845 |
|
1846 enum TDllFindMethod {EFindInPath, EFindInSystemLibs, EFindInSystemBin, EFindExhausted}; |
1847 enum TDllFindMethod {EFindInPath, EFindInSystemLibs, EFindInSystemBin, EFindExhausted}; |
1847 |
1848 |
1848 //--------------------------------------------------------------------------------------------------------------------- |
1849 //--------------------------------------------------------------------------------------------------------------------- |
1849 |
1850 |
1850 NONSHARABLE_CLASS(CFileBody) : public CBase, public CFileCB::MExtendedFileInterface |
1851 NONSHARABLE_CLASS(CFileBody) : public CBase, public CFileCB::MExtendedFileInterface |