A volume, once it is open, may need to be formatted before files or directories can be created. The default format is selected by passing a NULL pointer as the second parameter of FSVol_Fmt()
. Alternatively, the exact properties of the file system can be configured with a FS_FAT_SYS_CFG
structure. An example of populating and using the FAT configuration is shown in Listing 12-1the listing below. If the configuration is invalid, an error will be returned from FSVol_Fmt()
. For more information about the FS_FAT_SYS_CFG
structure, see Appendix D, “FSFS_FAT_SYS_CFG”CFG.
Listing 12-1 Example device format