userlibandfileserver/fileserver/sfat32/sl_fatcache.h
changeset 270 ea2cef07f9fe
parent 36 538db54a451d
--- a/userlibandfileserver/fileserver/sfat32/sl_fatcache.h	Tue Aug 31 11:40:45 2010 +0100
+++ b/userlibandfileserver/fileserver/sfat32/sl_fatcache.h	Tue Sep 14 15:52:42 2010 +0100
@@ -78,6 +78,10 @@
     inline TUint FAT_SectorSz() const; 
     inline TUint FAT_ClusterSzLog2() const;
 
+    inline TUint32 MaxFatEntries() const;
+    inline TBool FatIndexValid(TUint32 aIndex) const;
+
+
  protected:
     
     enum {KInvalidFatNo = 0xFF}; ///< used to invalidate current FAT no.
@@ -87,6 +91,7 @@
     //-- values cached from owning mount.
     TUint32     iFatStartPos;   ///< media position of FAT1 start 
     TUint32     iFatSize;       ///< size of FAT in bytes
+    TUint32     iMaxFatEntries; ///< maximal number of FAT entries in FAT table, FAT[0] & FAT [1] included
     TUint16     iNumFATs;       ///< number of FATs on the volume
     TUint16     iFatSecSzLog2;  ///< Log2(FAT Sector size)
     TUint16     iFatClustSzLog2;///< Log2(FAT cluster size)