userlibandfileserver/fileserver/sfat32/inc/sl_std.h
changeset 247 d8d70de2bd36
parent 200 73ea206103e6
child 266 0008ccd16016
equal deleted inserted replaced
201:43365a9b78a3 247:d8d70de2bd36
   748     void    DoUpdateFSInfoSectorsL(TBool aInvalidateFSInfo);
   748     void    DoUpdateFSInfoSectorsL(TBool aInvalidateFSInfo);
   749     void    UnFinaliseMountL();
   749     void    UnFinaliseMountL();
   750     void    DoReMountL();
   750     void    DoReMountL();
   751     void    SetFatType(TFatType aFatType);
   751     void    SetFatType(TFatType aFatType);
   752 
   752 
       
   753     TUint64 VolumeSizeInBytes() const;
   753 
   754 
   754 private:
   755 private:
   755 	
   756 	
   756 
   757 
   757 	CFatMountCB();
   758 	CFatMountCB();
   765 
   766 
   766     TBool iReadOnly         : 1;///< if true, the drive is in read-only mode 
   767     TBool iReadOnly         : 1;///< if true, the drive is in read-only mode 
   767     TBool iRamDrive         : 1;///< true if this is a RAM drive    
   768     TBool iRamDrive         : 1;///< true if this is a RAM drive    
   768     TBool iMainBootSecValid : 1;///< true if the main boot sector is valid, if false, a backup boot sector may be in use. 
   769     TBool iMainBootSecValid : 1;///< true if the main boot sector is valid, if false, a backup boot sector may be in use. 
   769 
   770 
   770     TFatMntState iState;        ///< this mounnt internal state
   771     TFatMntState iState;            ///< this mounnt internal state
   771 
   772 
   772     TFatType iFatType;          ///< FAT type, FAT12,16 or 32
   773     TFatType iFatType;              ///< FAT type, FAT12,16 or 32
   773     TUint32  iFatEocCode;       ///< End Of Cluster Chain code, 0xff8 for FAT12, 0xfff8 for FAT16, and 0xffffff8 for FAT32 
   774     TUint32  iFatEocCode;           ///< End Of Cluster Chain code, 0xff8 for FAT12, 0xfff8 for FAT16, and 0xffffff8 for FAT32 
   774 
   775 
   775     CLeafDirCache* iLeafDirCache;	///< A cache for most recently visited directories, only valid when limit is set bigger than 1
   776     CLeafDirCache* iLeafDirCache;	///< A cache for most recently visited directories, only valid when limit is set bigger than 1
   776 
   777 
   777 	TFatVolParam iVolParam;         ///< FAT volume parameters, populated form the boot sector values.
   778 	TFatVolParam iVolParam;         ///< FAT volume parameters, populated form the boot sector values.
   778     
   779     
   780 	TUint32 iUsableClusters;        ///< Number of usable cluster on the volume 
   781 	TUint32 iUsableClusters;        ///< Number of usable cluster on the volume 
   781 	
   782 	
   782     CFatTable* iFatTable;           ///< Pointer to the volume Fat 
   783     CFatTable* iFatTable;           ///< Pointer to the volume Fat 
   783 	CRawDisk*  iRawDisk;            ///< Pointer to the raw data interface class
   784 	CRawDisk*  iRawDisk;            ///< Pointer to the raw data interface class
   784 	
   785 	
   785     CAsyncNotifier* iNotifier;  ///< Async notifier for notifying user of Fat error conditions 
   786     CAsyncNotifier* iNotifier;      ///< Async notifier for notifying user of Fat error conditions 
   786 
   787 
   787     XDriveInterface iDriverInterface; ///< the object representing interface to the drive, provides read/write access and notifiers
   788     XDriveInterface iDriverInterface; ///< the object representing interface to the drive, provides read/write access and notifiers
   788 	TFatConfig      iFatConfig;       ///< FAT parametrers from estart.txt
   789 	TFatConfig      iFatConfig;       ///< FAT parametrers from estart.txt
   789 
   790 
   790 	XFileCreationHelper iFileCreationHelper;
   791 	XFileCreationHelper iFileCreationHelper;
   860     void FlushStartClusterL();
   861     void FlushStartClusterL();
   861 	TInt SeekToPosition(TUint aNewCluster, TUint aClusterOffset);
   862 	TInt SeekToPosition(TUint aNewCluster, TUint aClusterOffset);
   862 	void SetSeekIndexValueL(TUint aFileCluster,TUint aStoredCluster);
   863 	void SetSeekIndexValueL(TUint aFileCluster,TUint aStoredCluster);
   863 	void ResizeIndex(TInt aNewMult,TUint aNewSize);
   864 	void ResizeIndex(TInt aNewMult,TUint aNewSize);
   864 	TInt CalcSeekIndexSize(TUint aSize);
   865 	TInt CalcSeekIndexSize(TUint aSize);
   865 	TBool IsSeekBackwards(TUint aPos);
       
   866 	void ClearIndex(TUint aNewSize);
   866 	void ClearIndex(TUint aNewSize);
   867 	void DoSetSizeL(TUint aSize, TBool aForceCachesFlush);
   867 	void DoSetSizeL(TUint aSize, TBool aForceCachesFlush);
   868 	void WriteFileSizeL(TUint aSize);
   868 	void WriteFileSizeL(TUint aSize);
   869 
   869 
   870     //----------------------------
   870     //----------------------------