FS_FAT_SYS_CFG
typedef struct fs_fat_sys_cfg {
FS_SEC_QTY ClusSize;
FS_FAT_SEC_NBR RsvdAreaSize;
CPU_INT16U RootDirEntryCnt;
CPU_INT08U FAT_Type;
CPU_INT08U NbrFATs;
} FS_FAT_SYS_CFG;
File | Used for |
---|---|
| Second argument of |
A pointer to a FS_FAT_SYS_CFG
structure may be passed as the second argument of FSVol_Fmt()
. It configures the properties of the FAT file system that will be created.
Members
ClusSize
The size of a cluster, in sectors. This should be 1, 2, 4, 8, 16, 32, 64 or 128. The size of a cluster, in bytes, must be less than or equal to 65536, so some of the upper values may be invalid for devices with large sector sizes.
RsvdAreaSize
The size of the reserved area on the disk, in sectors. For FAT12 and FAT16 volumes, the reserved area should be 1 sector; for FAT32 volumes, 32 sectors.
RootDirEntryCnt
The number of entries in the root directory. This applies only to FAT12 and FAT16 volumes, on which the root directory is a separate area of the file system and is a fixed size. The root directory entry count caps the number of files and directories that can be located in the root directory.
FAT_Type
The type of FAT. This should be 12 (for FAT12), 16 for (FAT16) or 32 (for FAT32). Ths choice of FAT type must observe restrictions on the maximum number a clusters. A FAT12 file system may have no more than 4085 clusters; a FAT16 file system, no more than 65525.
NbrFATs
The number of actual FATs (file allocation tables) to create on the disk. The typical value is 2 (one for primary use, a secondary for backup).
Notes
- Further restrictions on the members of this structure can be found in FAT File System.