CONFIG_FILE_SYSTEM_MAX_FILE_NAME

Optional override for maximum file name length

Type: int

Help

Specify the maximum file name allowed across all enabled file system types. Zero or a negative value selects the maximum file name length for enabled in-tree file systems. This default may be inappropriate when registering an out-of-tree file system. Selecting a value less than the actual length supported by a file system may result in memory access violations.

Direct dependencies

FILE_SYSTEM

(Includes any dependencies from ifs and menus.)

Default

  • -1

Kconfig definition

At <Zephyr>/subsys/fs/Kconfig:34

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:24

Menu path: (Top) → Sub Systems and OS Services → File Systems → File system support

config FILE_SYSTEM_MAX_FILE_NAME
    int "Optional override for maximum file name length"
    default -1
    depends on FILE_SYSTEM
    help
      Specify the maximum file name allowed across all enabled file
      system types.  Zero or a negative value selects the maximum
      file name length for enabled in-tree file systems.  This
      default may be inappropriate when registering an out-of-tree
      file system.  Selecting a value less than the actual length
      supported by a file system may result in memory access
      violations.

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