:orphan: .. title:: CONFIG_FS_FATFS_MOUNT_MKFS .. kconfig:: CONFIG_FS_FATFS_MOUNT_MKFS CONFIG_FS_FATFS_MOUNT_MKFS ########################## *Allow formatting volume when mounting fails* Type: ``bool`` Help ==== .. code-block:: none 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 =================== \ :kconfig:`FAT_FILESYSTEM_ELM ` && \ :kconfig:`FILE_SYSTEM ` *(Includes any dependencies from ifs and menus.)* Default ======= - y Symbols selected by this symbol =============================== - \ :kconfig:`FS_FATFS_MKFS ` Kconfig definition ================== At ``/fs/Kconfig.fatfs:36`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:44`` → ``/Kconfig:25`` → ``/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 .. code-block:: kconfig 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.)*