CONFIG_EROFS_FS EROFS filesystem support
- Off
- Module
- Built in
EROFS (Enhanced Read-Only File System) is a modern, lightweight, secure read-only filesystem for various use cases, such as immutable system images, container images, application sandboxes, and datasets.
EROFS uses a flexible, hierarchical on-disk design so that features can be enabled on demand: the core on-disk format is block-aligned in order to perform optimally on all kinds of devices, including block and memory-backed devices; the format is easy to parse and has zero metadata redundancy, unlike generic filesystems, making it ideal for filesystem auditing and remote access; inline data, random-access friendly directory data, inline/shared extended attributes and chunk-based deduplication ensure space efficiency while maintaining high performance.
Optionally, it supports multiple devices to reference external data, enabling data sharing for container images.
It also has advanced encoded on-disk layouts, particularly for data compression and fine-grained deduplication. It utilizes fixed-size output compression to improve storage density while keeping relatively high compression ratios. Furthermore, it implements in-place decompression to reuse file pages to keep compressed data temporarily with proper strategies, which ensures guaranteed end-to-end runtime performance under extreme memory pressure without extra cost.
For more details, see the web pages at <https://erofs.docs.kernel.org> and the documentation at <file:Documentation/filesystems/erofs.rst>.
To compile EROFS filesystem support as a module, choose M here. The module will be called erofs.
If unsure, say N.
- Depends on
MISC_FILESYSTEMS && BLOCK - Selects
CRC32 if MISC_FILESYSTEMS && BLOCK - Selects
CRYPTO if MISC_FILESYSTEMS && BLOCK && EROFS_FS_ZIP_ACCEL - Selects
CRYPTO_DEFLATE if MISC_FILESYSTEMS && BLOCK && EROFS_FS_ZIP_ACCEL - Selects
FS_IOMAP if MISC_FILESYSTEMS && BLOCK - Selects
LZ4_DECOMPRESS if MISC_FILESYSTEMS && BLOCK && EROFS_FS_ZIP - Selects
XXHASH if MISC_FILESYSTEMS && BLOCK && EROFS_FS_XATTR - Selects
XZ_DEC if MISC_FILESYSTEMS && BLOCK && EROFS_FS_ZIP_LZMA - Selects
XZ_DEC_MICROLZMA if MISC_FILESYSTEMS && BLOCK && EROFS_FS_ZIP_LZMA - Selects
ZLIB_INFLATE if MISC_FILESYSTEMS && BLOCK && EROFS_FS_ZIP_DEFLATE - Selects
ZSTD_DECOMPRESS if MISC_FILESYSTEMS && BLOCK && EROFS_FS_ZIP_ZSTD
If EROFS_FS
CONFIG_EROFS_FS_DEBUG EROFS debugging feature
Print debugging messages and enable more BUG_ONs which check filesystem consistency and find potential issues aggressively, which can be used for Android eng build, for example.
For daily use, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS
CONFIG_EROFS_FS_XATTR EROFS extended attributes
Extended attributes are name:value pairs associated with inodes by the kernel or by users (see the attr(5) manual page, or visit <http://acl.bestbits.at/> for details).
If unsure, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS
If EROFS_FS_XATTR
CONFIG_EROFS_FS_POSIX_ACL EROFS Access Control Lists
Posix Access Control Lists (ACLs) support permissions for users and groups beyond the owner/group/world scheme.
To learn more about Access Control Lists, visit the POSIX ACLs for Linux website <http://acl.bestbits.at/>.
If you don't know what Access Control Lists are, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS_XATTR - Selects
FS_POSIX_ACL if MISC_FILESYSTEMS && EROFS_FS_XATTR
CONFIG_EROFS_FS_SECURITY EROFS Security Labels
Security labels provide an access control facility to support Linux Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO Linux. This option enables an extended attribute handler for file security labels in the erofs filesystem, so that it requires enabling the extended attribute support in advance.
If you are not using a security module, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS_XATTR
CONFIG_EROFS_FS_BACKED_BY_FILE File-backed EROFS filesystem support
This allows EROFS to use filesystem image files directly, without the intercession of loopback block devices or likewise. It is particularly useful for container images with numerous blobs and other sandboxes, where loop devices behave intricately. It can also be used to simplify error-prone lifetime management of unnecessary virtual block devices.
If you don't want to enable this feature, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS
CONFIG_EROFS_FS_ZIP EROFS Data Compression Support
Enable EROFS compression layouts so that filesystems containing compressed files can be parsed by the kernel.
If you don't want to enable compression feature, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS
If EROFS_FS_ZIP
CONFIG_EROFS_FS_ZIP_LZMA EROFS LZMA compressed data support
Saying Y here includes support for reading EROFS file systems containing LZMA compressed data, specifically called microLZMA. It gives better compression ratios than the default LZ4 format, at the expense of more CPU overhead.
Say N if you want to disable LZMA compression support.
- Depends on
MISC_FILESYSTEMS && EROFS_FS_ZIP
If EROFS_FS_ZIP_LZMA
CONFIG_EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS EROFS LZMA default maximum decompression streams
By default EROFS allocates one LZMA decompression stream per CPU. Each stream can hold a dictionary of up to 8 MiB taken from the mounted image, so on systems with many CPUs this can reserve a lot of memory. This caps the default; the lzma_streams module parameter still overrides it.
If unsure, keep the default of 16.
- Depends on
MISC_FILESYSTEMS && EROFS_FS_ZIP_LZMA - Range
[1 ] if MISC_FILESYSTEMS && EROFS_FS_ZIP_LZMA && - Range
[1 1] if MISC_FILESYSTEMS && EROFS_FS_ZIP_LZMA && !
CONFIG_EROFS_FS_ZIP_DEFLATE EROFS DEFLATE compressed data support
Saying Y here includes support for reading EROFS file systems containing DEFLATE compressed data. It gives better compression ratios than the default LZ4 format, while it costs more CPU overhead.
If unsure, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS_ZIP
CONFIG_EROFS_FS_ZIP_ZSTD EROFS Zstandard compressed data support
Saying Y here includes support for reading EROFS file systems containing Zstandard compressed data. It gives better compression ratios than the default LZ4 format, while it costs more CPU overhead and memory footprint.
If unsure, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS_ZIP
CONFIG_EROFS_FS_ZIP_ACCEL EROFS hardware decompression support
Saying Y here includes hardware accelerator support for reading EROFS file systems containing compressed data. It gives better decompression speed than the software-implemented decompression, and it costs lower CPU overhead.
Hardware accelerator support is an experimental feature for now and file systems are still readable without selecting this option.
If unsure, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS_ZIP
CONFIG_EROFS_FS_PCPU_KTHREAD EROFS per-cpu decompression kthread workers
Saying Y here enables per-CPU kthread workers pool to carry out async decompression for low latencies on some architectures.
If unsure, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS_ZIP
If EROFS_FS_PCPU_KTHREAD
CONFIG_EROFS_FS_PCPU_KTHREAD_HIPRI EROFS high priority per-CPU kthread workers
This permits EROFS to configure per-CPU kthread workers to run at higher priority.
If unsure, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS_ZIP && EROFS_FS_PCPU_KTHREAD
CONFIG_EROFS_FS_PAGE_CACHE_SHARE EROFS page cache share support (experimental)
This enables page cache sharing among inodes with identical content fingerprints on the same machine.
If unsure, say N.
- Depends on
MISC_FILESYSTEMS && EROFS_FS && EROFS_FS_XATTR - Selects
FS_STACK if MISC_FILESYSTEMS && EROFS_FS && EROFS_FS_XATTR
- arch/alpha/Kconfig:484
- arch/arc/Kconfig:175
- arch/arm/Kconfig:1063
- arch/arm64/Kconfig:1702
- arch/csky/Kconfig:318
- arch/hexagon/Kconfig:109
- arch/loongarch/Kconfig:542
- arch/m68k/Kconfig.cpu:552
- arch/microblaze/Kconfig:123
- arch/mips/Kconfig:2756
- arch/nios2/Kconfig:72
- arch/openrisc/Kconfig:185
- arch/parisc/Kconfig:367
- arch/powerpc/platforms/Kconfig.cputype:570
- arch/riscv/Kconfig:450
- arch/s390/Kconfig:533
- arch/sh/Kconfig:582
- arch/sparc/Kconfig:180
- arch/um/Kconfig:132
- arch/x86/Kconfig:1037
- arch/xtensa/Kconfig:253
- arch/alpha/Kconfig:465
- arch/arc/Kconfig:167
- arch/arm/Kconfig:910
- arch/arm64/Kconfig:358
- arch/csky/Kconfig:313
- arch/hexagon/Kconfig:104
- arch/loongarch/Kconfig:513
- arch/mips/Kconfig:2700
- arch/openrisc/Kconfig:191
- arch/parisc/Kconfig:314
- arch/powerpc/platforms/Kconfig.cputype:550
- arch/riscv/Kconfig:437
- arch/s390/Kconfig:530
- arch/sh/Kconfig:560
- arch/sparc/Kconfig:158
- arch/um/Kconfig:97
- arch/x86/Kconfig:437
- arch/xtensa/Kconfig:245