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 <Zephyr>/subsys/fs/Kconfig.fatfs:89

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:25<Zephyr>/subsys/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.)