1 # SPDX-License-Identifier: GPL-2.0-only
4 tristate "EROFS filesystem support"
9 EROFS (Enhanced Read-Only File System) is a lightweight read-only
10 file system with modern designs (e.g. no buffer heads, inline
11 xattrs/data, chunk-based deduplication, multiple devices, etc.) for
12 scenarios which need high-performance read-only solutions, e.g.
13 smartphones with Android OS, LiveCDs and high-density hosts with
16 It also provides fixed-sized output compression support in order to
17 improve storage density as well as keep relatively higher compression
18 ratios and implements in-place decompression to reuse the file page
19 for compressed data temporarily with proper strategies, which is
20 quite useful to ensure guaranteed end-to-end runtime decompression
21 performance under extremely memory pressure without extra cost.
23 See the documentation at <file:Documentation/filesystems/erofs.rst>
24 and the web pages at <https://erofs.docs.kernel.org> for more details.
29 bool "EROFS debugging feature"
32 Print debugging messages and enable more BUG_ONs which check
33 filesystem consistency and find potential issues aggressively,
34 which can be used for Android eng build, for example.
39 bool "EROFS extended attributes"
44 Extended attributes are name:value pairs associated with inodes by
45 the kernel or by users (see the attr(5) manual page, or visit
46 <http://acl.bestbits.at/> for details).
50 config EROFS_FS_POSIX_ACL
51 bool "EROFS Access Control Lists"
52 depends on EROFS_FS_XATTR
56 Posix Access Control Lists (ACLs) support permissions for users and
57 groups beyond the owner/group/world scheme.
59 To learn more about Access Control Lists, visit the POSIX ACLs for
60 Linux website <http://acl.bestbits.at/>.
62 If you don't know what Access Control Lists are, say N.
64 config EROFS_FS_SECURITY
65 bool "EROFS Security Labels"
66 depends on EROFS_FS_XATTR
69 Security labels provide an access control facility to support Linux
70 Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
71 Linux. This option enables an extended attribute handler for file
72 security labels in the erofs filesystem, so that it requires enabling
73 the extended attribute support in advance.
75 If you are not using a security module, say N.
78 bool "EROFS Data Compression Support"
83 Enable fixed-sized output compression for EROFS.
85 If you don't want to enable compression feature, say N.
87 config EROFS_FS_ZIP_LZMA
88 bool "EROFS LZMA compressed data support"
89 depends on EROFS_FS_ZIP
91 select XZ_DEC_MICROLZMA
93 Saying Y here includes support for reading EROFS file systems
94 containing LZMA compressed data, specifically called microLZMA. It
95 gives better compression ratios than the default LZ4 format, at the
96 expense of more CPU overhead.
100 config EROFS_FS_ZIP_DEFLATE
101 bool "EROFS DEFLATE compressed data support"
102 depends on EROFS_FS_ZIP
105 Saying Y here includes support for reading EROFS file systems
106 containing DEFLATE compressed data. It gives better compression
107 ratios than the default LZ4 format, while it costs more CPU
110 DEFLATE support is an experimental feature for now and so most
111 file systems will be readable without selecting this option.
115 config EROFS_FS_ZIP_ZSTD
116 bool "EROFS Zstandard compressed data support"
117 depends on EROFS_FS_ZIP
118 select ZSTD_DECOMPRESS
120 Saying Y here includes support for reading EROFS file systems
121 containing Zstandard compressed data. It gives better compression
122 ratios than the default LZ4 format, while it costs more CPU
125 Zstandard support is an experimental feature for now and so most
126 file systems will be readable without selecting this option.
130 config EROFS_FS_ONDEMAND
131 bool "EROFS fscache-based on-demand read support"
136 select CACHEFILES_ONDEMAND
138 This permits EROFS to use fscache-backed data blobs with on-demand
143 config EROFS_FS_PCPU_KTHREAD
144 bool "EROFS per-cpu decompression kthread workers"
145 depends on EROFS_FS_ZIP
147 Saying Y here enables per-CPU kthread workers pool to carry out
148 async decompression for low latencies on some architectures.
152 config EROFS_FS_PCPU_KTHREAD_HIPRI
153 bool "EROFS high priority per-CPU kthread workers"
154 depends on EROFS_FS_ZIP && EROFS_FS_PCPU_KTHREAD
157 This permits EROFS to configure per-CPU kthread workers to run