Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 the 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 FS_FAT_SYS_CFG.

Listing 12-1 Example device format