#include <fat.h>
Definition at line 168 of file fat.h.
Data Fields | |
| unsigned long | brPhySec |
| Boot record physical sector. | |
| unsigned long | curActvPhySec |
| Current active phySec. | |
| unsigned long | FATsz16_32 |
| Sectors per FAT. | |
| unsigned long | totalSec16_32 |
| total sectors on disk. | |
| unsigned long | maxClus |
| Maximum cluster number. | |
| unsigned long | rootDirCluster |
| Clus num of the 1st cluster of root dir for FAT32. | |
| unsigned long | rootDirSec |
| Sector number of root dir offset from boot record. | |
| unsigned long | dataStartSec |
| First data sector offset from boot record. | |
| unsigned long | EOC |
| End of Cluster mark. | |
| unsigned short | wordsPerLogSec |
| words per logical sector. | |
| unsigned short | numFATs |
| Number of FATs. | |
| unsigned short | rootEntCnt |
| number of root entries. | |
| unsigned short | wordsPerClus |
| number of words per cluster. | |
| unsigned short | maxDirEntPerClus |
| Maximum number of directory entries per cluster. | |
| unsigned short | rsvdSecCnt |
| number of reserved sectors. | |
| unsigned short | maxFndClus |
| Max num of contiguous clusters to find. | |
| unsigned long | fsInfoSec |
| Sector number of FSINFO structure. | |
| unsigned short | secBuf [256] |
| Data buffer of current active phySec. | |
| unsigned short | fatSecBuf [256] |
| Data buffer of current active FAT sector. | |
| unsigned long | curActvFatPhySec |
| Current active FAT physical sector. | |
| unsigned char | secPerClus |
| number of sectors per cluster. | |
| FAT_TYPE | fileSysType |
| FAT type. | |
| unsigned short | flag |
| disk control flags. | |
| unsigned long | newStartSrchClus |
| Every availabe clus search starts from here. | |
| unsigned long | oldStartSrchClus |
| Rollover search stops here, clusters after this one have been processed already. | |
| unsigned long | minAvlblClus |
| The minimum cluster number of those allocated but not used. | |
| unsigned short | wrFileNum |
| number of writable files opened. | |
| unsigned long | freeClusNum |
| Used for both FAT32 and FAT16 system, remember how many free cluster left. | |
| unsigned long | oldFreeClusNum |
| Only used for FAT32 to remember the original free cluster left right after disk is mounted. | |
| func_RWSEC * | readSec |
| sector read handle. | |
| func_RWSEC * | writeSec |
| sector write handle. | |
| LCK_Obj * | lock |
| disk data access lock. | |
| LCK_Obj * | lock2 |
| disk FAT access lock. | |
|
|
Used for both FAT32 and FAT16 system, remember how many free cluster left. Every time fat table is updated, this number should be updated too. when disk is unmounting, this number will be written back to disk info sector. Definition at line 213 of file fat.h. Referenced by FAT__flush(), FAT__format(), FAT__releaseClus(), and FAT_freeSpace(). |
1.3.9.1