CONFIG_FS_FATFS_MOUNT_MKFS

Allow formatting volume when mounting fails

Type: bool

Help

This option adds code that allows fs_mount to attempt to format a volume if no file system is found. If formatting is not needed, disabling this flag will slightly reduce application size.

Direct dependencies

FAT_FILESYSTEM_ELM && FILE_SYSTEM

(Includes any dependencies from ifs and menus.)

Default

  • y

Symbols selected by this symbol

Kconfig definition

At <Zephyr>/subsys/fs/Kconfig.fatfs:36

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

config FS_FATFS_MOUNT_MKFS
    bool "Allow formatting volume when mounting fails" if FAT_FILESYSTEM_ELM
    default y
    select FS_FATFS_MKFS
    depends on FAT_FILESYSTEM_ELM && FILE_SYSTEM
    help
      This option adds code that allows fs_mount to attempt to format
      a volume if no file system is found.
      If formatting is not needed, disabling this flag will slightly
      reduce application size.

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