CONFIG_FS_FATFS_READ_ONLY

Read-only support for all volumes

Type: bool

Help

The option excludes write code from ELM FAT file system driver; when selected, it no longer will be possible to write data on the FAT FS. If write support is not needed, enabling this flag will slightly reduce application size. This option translates to _FS_READONLY within ELM FAT file system driver; it enables exclusion, from compilation, of write supporting code.

Direct dependencies

FAT_FILESYSTEM_ELM && FILE_SYSTEM

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

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

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:25<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_READ_ONLY
    bool "Read-only support for all volumes" if FAT_FILESYSTEM_ELM
    depends on FAT_FILESYSTEM_ELM && FILE_SYSTEM
    help
      The option excludes write code from ELM FAT file system driver;
      when selected, it no longer will be possible to write data on
      the FAT FS.
      If write support is not needed, enabling this flag will slightly
      reduce application size.
      This option translates to _FS_READONLY within ELM FAT file system
      driver; it enables exclusion, from compilation, of write supporting
      code.

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