The latest development version of this page may be more current than this released 2.7.5 version.

CONFIG_FS_FATFS_MAX_LFN

Max filename length

Type: int

Help

The working buffer occupies (FS_FATFS_MAX_LFN + 1) * 2 bytes and
additional 608 bytes at exFAT enabled.
It should be set 255 to support full featured LFN operations.

Direct dependencies

FS_FATFS_LFN && FAT_FILESYSTEM_ELM && FILE_SYSTEM

(Includes any dependencies from ifs and menus.)

Default

  • 255

Kconfig definition

At subsys/fs/Kconfig.fatfs:89

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:25subsys/fs/Kconfig:60

Menu path: (Top) → Sub Systems and OS Services → File Systems → File system support → ELM FAT file system support → ELM FAT file system settings → Enable long filenames (LFN)

config FS_FATFS_MAX_LFN
    int "Max filename length" if FAT_FILESYSTEM_ELM
    range 12 255
    default 255
    depends on FS_FATFS_LFN && FAT_FILESYSTEM_ELM && FILE_SYSTEM
    help
      The working buffer occupies (FS_FATFS_MAX_LFN + 1) * 2 bytes and
      additional 608 bytes at exFAT enabled.
      It should be set 255 to support full featured LFN operations.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)