This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

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 subsys/fs/Kconfig:34

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:25

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.)