Kconfig 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config EROFS_FS
  3. tristate "EROFS filesystem support"
  4. depends on BLOCK
  5. select FS_IOMAP
  6. select LIBCRC32C
  7. help
  8. EROFS (Enhanced Read-Only File System) is a lightweight read-only
  9. file system with modern designs (e.g. no buffer heads, inline
  10. xattrs/data, chunk-based deduplication, multiple devices, etc.) for
  11. scenarios which need high-performance read-only solutions, e.g.
  12. smartphones with Android OS, LiveCDs and high-density hosts with
  13. numerous containers;
  14. It also provides fixed-sized output compression support in order to
  15. improve storage density as well as keep relatively higher compression
  16. ratios and implements in-place decompression to reuse the file page
  17. for compressed data temporarily with proper strategies, which is
  18. quite useful to ensure guaranteed end-to-end runtime decompression
  19. performance under extremely memory pressure without extra cost.
  20. See the documentation at <file:Documentation/filesystems/erofs.rst>
  21. and the web pages at <https://erofs.docs.kernel.org> for more details.
  22. If unsure, say N.
  23. config EROFS_FS_DEBUG
  24. bool "EROFS debugging feature"
  25. depends on EROFS_FS
  26. help
  27. Print debugging messages and enable more BUG_ONs which check
  28. filesystem consistency and find potential issues aggressively,
  29. which can be used for Android eng build, for example.
  30. For daily use, say N.
  31. config EROFS_FS_XATTR
  32. bool "EROFS extended attributes"
  33. depends on EROFS_FS
  34. select XXHASH
  35. default y
  36. help
  37. Extended attributes are name:value pairs associated with inodes by
  38. the kernel or by users (see the attr(5) manual page, or visit
  39. <http://acl.bestbits.at/> for details).
  40. If unsure, say N.
  41. config EROFS_FS_POSIX_ACL
  42. bool "EROFS Access Control Lists"
  43. depends on EROFS_FS_XATTR
  44. select FS_POSIX_ACL
  45. default y
  46. help
  47. Posix Access Control Lists (ACLs) support permissions for users and
  48. groups beyond the owner/group/world scheme.
  49. To learn more about Access Control Lists, visit the POSIX ACLs for
  50. Linux website <http://acl.bestbits.at/>.
  51. If you don't know what Access Control Lists are, say N.
  52. config EROFS_FS_SECURITY
  53. bool "EROFS Security Labels"
  54. depends on EROFS_FS_XATTR
  55. default y
  56. help
  57. Security labels provide an access control facility to support Linux
  58. Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
  59. Linux. This option enables an extended attribute handler for file
  60. security labels in the erofs filesystem, so that it requires enabling
  61. the extended attribute support in advance.
  62. If you are not using a security module, say N.
  63. config EROFS_FS_BACKED_BY_FILE
  64. bool "File-backed EROFS filesystem support"
  65. depends on EROFS_FS
  66. default y
  67. help
  68. This allows EROFS to use filesystem image files directly, without
  69. the intercession of loopback block devices or likewise. It is
  70. particularly useful for container images with numerous blobs and
  71. other sandboxes, where loop devices behave intricately. It can also
  72. be used to simplify error-prone lifetime management of unnecessary
  73. virtual block devices.
  74. Note that this feature, along with ongoing fanotify pre-content
  75. hooks, will eventually replace "EROFS over fscache."
  76. If you don't want to enable this feature, say N.
  77. config EROFS_FS_ZIP
  78. bool "EROFS Data Compression Support"
  79. depends on EROFS_FS
  80. select LZ4_DECOMPRESS
  81. default y
  82. help
  83. Enable fixed-sized output compression for EROFS.
  84. If you don't want to enable compression feature, say N.
  85. config EROFS_FS_ZIP_LZMA
  86. bool "EROFS LZMA compressed data support"
  87. depends on EROFS_FS_ZIP
  88. select XZ_DEC
  89. select XZ_DEC_MICROLZMA
  90. help
  91. Saying Y here includes support for reading EROFS file systems
  92. containing LZMA compressed data, specifically called microLZMA. It
  93. gives better compression ratios than the default LZ4 format, at the
  94. expense of more CPU overhead.
  95. If unsure, say N.
  96. config EROFS_FS_ZIP_DEFLATE
  97. bool "EROFS DEFLATE compressed data support"
  98. depends on EROFS_FS_ZIP
  99. select ZLIB_INFLATE
  100. help
  101. Saying Y here includes support for reading EROFS file systems
  102. containing DEFLATE compressed data. It gives better compression
  103. ratios than the default LZ4 format, while it costs more CPU
  104. overhead.
  105. DEFLATE support is an experimental feature for now and so most
  106. file systems will be readable without selecting this option.
  107. If unsure, say N.
  108. config EROFS_FS_ZIP_ZSTD
  109. bool "EROFS Zstandard compressed data support"
  110. depends on EROFS_FS_ZIP
  111. select ZSTD_DECOMPRESS
  112. help
  113. Saying Y here includes support for reading EROFS file systems
  114. containing Zstandard compressed data. It gives better compression
  115. ratios than the default LZ4 format, while it costs more CPU
  116. overhead.
  117. Zstandard support is an experimental feature for now and so most
  118. file systems will be readable without selecting this option.
  119. If unsure, say N.
  120. config EROFS_FS_ONDEMAND
  121. bool "EROFS fscache-based on-demand read support (deprecated)"
  122. depends on EROFS_FS
  123. select NETFS_SUPPORT
  124. select FSCACHE
  125. select CACHEFILES
  126. select CACHEFILES_ONDEMAND
  127. help
  128. This permits EROFS to use fscache-backed data blobs with on-demand
  129. read support.
  130. It is now deprecated and scheduled to be removed from the kernel
  131. after fanotify pre-content hooks are landed.
  132. If unsure, say N.
  133. config EROFS_FS_PCPU_KTHREAD
  134. bool "EROFS per-cpu decompression kthread workers"
  135. depends on EROFS_FS_ZIP
  136. help
  137. Saying Y here enables per-CPU kthread workers pool to carry out
  138. async decompression for low latencies on some architectures.
  139. If unsure, say N.
  140. config EROFS_FS_PCPU_KTHREAD_HIPRI
  141. bool "EROFS high priority per-CPU kthread workers"
  142. depends on EROFS_FS_ZIP && EROFS_FS_PCPU_KTHREAD
  143. default y
  144. help
  145. This permits EROFS to configure per-CPU kthread workers to run
  146. at higher priority.
  147. If unsure, say N.