eCosPro® Reference Manual
Prev | Chapter 13. Configuring the FAT Filesystem | Next

# Configuring the FAT Filesystem

Once added to the configuration, the FAT filesystem has a number of configuration options:

CYGNUM_FS_FAT_NODE_HASH_TABLE_SIZE

  This option controls the number of slots in the hash table used to store file nodes using filenames as keys.

  Default value: 32

CYGNUM_FS_FAT_NODE_POOL_SIZE

  This option controls the size of the node pool used for storing file nodes. This value should be set to the maximum required number of simultaneously open files plus the desired size of unused node cache.

  Default value: CYGNUM_FILEIO_NFILE + 2

CYGNUM_FS_FAT_BLOCK_CACHE_BLOCKSIZE

  This option controls the size of blocks in the block cache. This value should be a power-of-2 multiple of 512.

  Default value: 512

CYGNUM_FS_FAT_BLOCK_CACHE_MEMSIZE

  This option controls the amount of memory used for the block cache.

  Default value: 20 * CYGNUM_FS_FAT_BLOCK_CACHE_BLOCKSIZE

CYGDBG_FS_FAT_NODE_CACHE_EXTRA_CHECKS

  This option controls the inclusion of extra sanity checks in node cache code.

  Default value: 1

CYGCFG_FS_FAT_USE_ATTRIBUTES

  This option controls whether the FAT filesystem supports or honors the FAT filesystem file attributes.

  Default value: 0

CYGCFG_FS_FAT_LONG_FILE_NAMES

  This option controls the FAT filesystem support for long file names.

  Default value: 0

CYGNUM_FS_FAT_LONG_FILE_NAME_MAX

  This option defines the maximum size of long file names supported by the filesystem. The default value of 64 corresponds to NAME_MAX, which defines the size of d_name[] in a struct dirent.

  Default value: 64

Normally these options should be left as they are unless you have a specific need to change them. Once the configuration had been created, it should be possible to compile eCos and link it with the application without any errors.

Prev | Home | Next
Configuring the FAT Filesystem | Up | Using the FAT Filesystem