userlibandfileserver/fileserver/sfile/sf_std.h
branchRCL_3
changeset 28 5b5d147c7838
parent 23 1df514389a47
child 41 0ffb4e86fcc9
equal deleted inserted replaced
26:c734af59ce98 28:5b5d147c7838
   141 //-- It is 2G-1. Used in legacy code that does not understand RFile64
   141 //-- It is 2G-1. Used in legacy code that does not understand RFile64
   142 const TUint64 KMaxLegacyFileSize    = 0x7fffffff;
   142 const TUint64 KMaxLegacyFileSize    = 0x7fffffff;
   143 
   143 
   144 //-- absolute maximum file size that file server supports
   144 //-- absolute maximum file size that file server supports
   145 const TUint64 KMaxSupportedFileSize = KMaxTUint64;
   145 const TUint64 KMaxSupportedFileSize = KMaxTUint64;
       
   146 
       
   147 //-- this is a speculative value of a min. amount of free space on the volume necessary to create a file, directory etc.
       
   148 //-- it is used mostly in "reserve drive space" functionality, which is, actually, fundamentally flawed.
       
   149 //-- the problem is that the file server can't know exactly how much space is required to create some fs object on the volume, 
       
   150 //-- 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.
       
   151 const TInt KMinFsCreateObjTreshold = KDefaultVolumeBlockSize;
       
   152 
   146 
   153 
   147 //__DATA_CAGING__
   154 //__DATA_CAGING__
   148 const TUint SHA1_LBLOCK=16;
   155 const TUint SHA1_LBLOCK=16;
   149 const TUint SHA1_HASH=20;
   156 const TUint SHA1_HASH=20;
   150 #if defined(_DEBUG) || defined(_DEBUG_RELEASE)
   157 #if defined(_DEBUG) || defined(_DEBUG_RELEASE)
  1837 extern HBufC* gCorruptFileNamesListFile;
  1844 extern HBufC* gCorruptFileNamesListFile;
  1838 #endif
  1845 #endif
  1839 
  1846 
  1840 typedef TPckgBuf<TMediaPswdReplyNotifyInfoV1> TMediaPswdReplyNotifyInfoV1Buf;
  1847 typedef TPckgBuf<TMediaPswdReplyNotifyInfoV1> TMediaPswdReplyNotifyInfoV1Buf;
  1841 
  1848 
  1842 #if defined(__WINS__)
       
  1843  TInt MapWindowsFileName(TDes& aBuffer,const TDesC& aFileName);
       
  1844 #endif
       
  1845 
       
  1846 enum TDllFindMethod {EFindInPath, EFindInSystemLibs, EFindInSystemBin, EFindExhausted};
  1849 enum TDllFindMethod {EFindInPath, EFindInSystemLibs, EFindInSystemBin, EFindExhausted};
  1847 
  1850 
  1848 //---------------------------------------------------------------------------------------------------------------------
  1851 //---------------------------------------------------------------------------------------------------------------------
  1849 
  1852 
  1850 NONSHARABLE_CLASS(CFileBody) : public CBase, public CFileCB::MExtendedFileInterface
  1853 NONSHARABLE_CLASS(CFileBody) : public CBase, public CFileCB::MExtendedFileInterface