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 && FILE_SYSTEM

(Includes any dependencies from ifs and menus.)

Default

  • 255

Kconfig definition

At subsys/fs/Kconfig:100

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:16

Menu path: (Top) → File Systems → File system support → FatFs 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 && 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.)