diff -r d45b74d3fb20 -r d57b86b1867a userlibandfileserver/fileserver/sfat32/sl_fatcache.h --- a/userlibandfileserver/fileserver/sfat32/sl_fatcache.h Tue Aug 31 11:40:45 2010 +0100 +++ b/userlibandfileserver/fileserver/sfat32/sl_fatcache.h Mon Sep 13 15:16:07 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)