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_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 subsys/fs/Kconfig.fatfs:17

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:25subsys/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.)