Kconfig 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config EROFS_FS
  3. tristate "EROFS filesystem support"
  4. depends on BLOCK
  5. select CACHEFILES if EROFS_FS_ONDEMAND
  6. select CRC32
  7. select CRYPTO if EROFS_FS_ZIP_ACCEL
  8. select CRYPTO_DEFLATE if EROFS_FS_ZIP_ACCEL
  9. select FS_IOMAP
  10. select LZ4_DECOMPRESS if EROFS_FS_ZIP
  11. select NETFS_SUPPORT if EROFS_FS_ONDEMAND
  12. select XXHASH if EROFS_FS_XATTR
  13. select XZ_DEC if EROFS_FS_ZIP_LZMA
  14. select XZ_DEC_MICROLZMA if EROFS_FS_ZIP_LZMA
  15. select ZLIB_INFLATE if EROFS_FS_ZIP_DEFLATE
  16. select ZSTD_DECOMPRESS if EROFS_FS_ZIP_ZSTD
  17. help
  18. EROFS (Enhanced Read-Only File System) is a modern, lightweight,
  19. secure read-only filesystem for various use cases, such as immutable
  20. system images, container images, application sandboxes, and datasets.
  21. EROFS uses a flexible, hierarchical on-disk design so that features
  22. can be enabled on demand: the core on-disk format is block-aligned in
  23. order to perform optimally on all kinds of devices, including block
  24. and memory-backed devices; the format is easy to parse and has zero
  25. metadata redundancy, unlike generic filesystems, making it ideal for
  26. filesystem auditing and remote access; inline data, random-access
  27. friendly directory data, inline/shared extended attributes and
  28. chunk-based deduplication ensure space efficiency while maintaining
  29. high performance.
  30. Optionally, it supports multiple devices to reference external data,
  31. enabling data sharing for container images.
  32. It also has advanced encoded on-disk layouts, particularly for data
  33. compression and fine-grained deduplication. It utilizes fixed-size
  34. output compression to improve storage density while keeping relatively
  35. high compression ratios. Furthermore, it implements in-place
  36. decompression to reuse file pages to keep compressed data temporarily
  37. with proper strategies, which ensures guaranteed end-to-end runtime
  38. performance under extreme memory pressure without extra cost.
  39. For more details, see the web pages at <https://erofs.docs.kernel.org>
  40. and the documentation at <file:Documentation/filesystems/erofs.rst>.
  41. To compile EROFS filesystem support as a module, choose M here. The
  42. module will be called erofs.
  43. If unsure, say N.
  44. config EROFS_FS_DEBUG
  45. bool "EROFS debugging feature"
  46. depends on EROFS_FS
  47. help
  48. Print debugging messages and enable more BUG_ONs which check
  49. filesystem consistency and find potential issues aggressively,
  50. which can be used for Android eng build, for example.
  51. For daily use, say N.
  52. config EROFS_FS_XATTR
  53. bool "EROFS extended attributes"
  54. depends on EROFS_FS
  55. default y
  56. help
  57. Extended attributes are name:value pairs associated with inodes by
  58. the kernel or by users (see the attr(5) manual page, or visit
  59. <http://acl.bestbits.at/> for details).
  60. If unsure, say N.
  61. config EROFS_FS_POSIX_ACL
  62. bool "EROFS Access Control Lists"
  63. depends on EROFS_FS_XATTR
  64. select FS_POSIX_ACL
  65. default y
  66. help
  67. Posix Access Control Lists (ACLs) support permissions for users and
  68. groups beyond the owner/group/world scheme.
  69. To learn more about Access Control Lists, visit the POSIX ACLs for
  70. Linux website <http://acl.bestbits.at/>.
  71. If you don't know what Access Control Lists are, say N.
  72. config EROFS_FS_SECURITY
  73. bool "EROFS Security Labels"
  74. depends on EROFS_FS_XATTR
  75. default y
  76. help
  77. Security labels provide an access control facility to support Linux
  78. Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
  79. Linux. This option enables an extended attribute handler for file
  80. security labels in the erofs filesystem, so that it requires enabling
  81. the extended attribute support in advance.
  82. If you are not using a security module, say N.
  83. config EROFS_FS_BACKED_BY_FILE
  84. bool "File-backed EROFS filesystem support"
  85. depends on EROFS_FS
  86. default y
  87. help
  88. This allows EROFS to use filesystem image files directly, without
  89. the intercession of loopback block devices or likewise. It is
  90. particularly useful for container images with numerous blobs and
  91. other sandboxes, where loop devices behave intricately. It can also
  92. be used to simplify error-prone lifetime management of unnecessary
  93. virtual block devices.
  94. Note that this feature, along with ongoing fanotify pre-content
  95. hooks, will eventually replace "EROFS over fscache."
  96. If you don't want to enable this feature, say N.
  97. config EROFS_FS_ZIP
  98. bool "EROFS Data Compression Support"
  99. depends on EROFS_FS
  100. default y
  101. help
  102. Enable EROFS compression layouts so that filesystems containing
  103. compressed files can be parsed by the kernel.
  104. If you don't want to enable compression feature, say N.
  105. config EROFS_FS_ZIP_LZMA
  106. bool "EROFS LZMA compressed data support"
  107. depends on EROFS_FS_ZIP
  108. default y
  109. help
  110. Saying Y here includes support for reading EROFS file systems
  111. containing LZMA compressed data, specifically called microLZMA. It
  112. gives better compression ratios than the default LZ4 format, at the
  113. expense of more CPU overhead.
  114. Say N if you want to disable LZMA compression support.
  115. config EROFS_FS_ZIP_DEFLATE
  116. bool "EROFS DEFLATE compressed data support"
  117. depends on EROFS_FS_ZIP
  118. help
  119. Saying Y here includes support for reading EROFS file systems
  120. containing DEFLATE compressed data. It gives better compression
  121. ratios than the default LZ4 format, while it costs more CPU
  122. overhead.
  123. If unsure, say N.
  124. config EROFS_FS_ZIP_ZSTD
  125. bool "EROFS Zstandard compressed data support"
  126. depends on EROFS_FS_ZIP
  127. help
  128. Saying Y here includes support for reading EROFS file systems
  129. containing Zstandard compressed data. It gives better compression
  130. ratios than the default LZ4 format, while it costs more CPU
  131. overhead and memory footprint.
  132. If unsure, say N.
  133. config EROFS_FS_ZIP_ACCEL
  134. bool "EROFS hardware decompression support"
  135. depends on EROFS_FS_ZIP
  136. help
  137. Saying Y here includes hardware accelerator support for reading
  138. EROFS file systems containing compressed data. It gives better
  139. decompression speed than the software-implemented decompression, and
  140. it costs lower CPU overhead.
  141. Hardware accelerator support is an experimental feature for now and
  142. file systems are still readable without selecting this option.
  143. If unsure, say N.
  144. config EROFS_FS_ONDEMAND
  145. bool "EROFS fscache-based on-demand read support (deprecated)"
  146. depends on EROFS_FS
  147. select FSCACHE
  148. select CACHEFILES_ONDEMAND
  149. help
  150. This permits EROFS to use fscache-backed data blobs with on-demand
  151. read support.
  152. It is now deprecated and scheduled to be removed from the kernel
  153. after fanotify pre-content hooks are landed.
  154. If unsure, say N.
  155. config EROFS_FS_PCPU_KTHREAD
  156. bool "EROFS per-cpu decompression kthread workers"
  157. depends on EROFS_FS_ZIP
  158. help
  159. Saying Y here enables per-CPU kthread workers pool to carry out
  160. async decompression for low latencies on some architectures.
  161. If unsure, say N.
  162. config EROFS_FS_PCPU_KTHREAD_HIPRI
  163. bool "EROFS high priority per-CPU kthread workers"
  164. depends on EROFS_FS_ZIP && EROFS_FS_PCPU_KTHREAD
  165. default y
  166. help
  167. This permits EROFS to configure per-CPU kthread workers to run
  168. at higher priority.
  169. If unsure, say N.
  170. config EROFS_FS_PAGE_CACHE_SHARE
  171. bool "EROFS page cache share support (experimental)"
  172. depends on EROFS_FS && EROFS_FS_XATTR && !EROFS_FS_ONDEMAND
  173. help
  174. This enables page cache sharing among inodes with identical
  175. content fingerprints on the same machine.
  176. If unsure, say N.