:orphan: .. title:: FS_FATFS_MOUNT_MKFS .. option:: 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 =================== \ :option:`FAT_FILESYSTEM_ELM ` && \ :option:`FILE_SYSTEM ` *(Includes any dependencies from ifs and menus.)* Default ======= - y Symbols selected by this symbol =============================== - \ :option:`FS_FATFS_MKFS ` Kconfig definition ================== .. highlight:: kconfig At ``subsys/fs/Kconfig.fatfs:36`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:34`` → ``subsys/Kconfig:25`` → ``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 .. parsed-literal:: config FS_FATFS_MOUNT_MKFS bool "Allow formatting volume when mounting fails" if \ :option:`FAT_FILESYSTEM_ELM ` default y select \ :option:`FS_FATFS_MKFS ` depends on \ :option:`FAT_FILESYSTEM_ELM ` && \ :option:`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.)*