Kconfig 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. # SPDX-License-Identifier: GPL-2.0
  2. config EROFS_FS
  3. tristate "EROFS filesystem support"
  4. depends on BLOCK
  5. help
  6. EROFS(Enhanced Read-Only File System) is a lightweight
  7. read-only file system with modern designs (eg. page-sized
  8. blocks, inline xattrs/data, etc.) for scenarios which need
  9. high-performance read-only requirements, eg. firmwares in
  10. mobile phone or LIVECDs.
  11. It also provides VLE compression support, focusing on
  12. random read improvements, keeping relatively lower
  13. compression ratios, which is useful for high-performance
  14. devices with limited memory and ROM space.
  15. If unsure, say N.
  16. config EROFS_FS_DEBUG
  17. bool "EROFS debugging feature"
  18. depends on EROFS_FS
  19. help
  20. Print EROFS debugging messages and enable more BUG_ONs
  21. which check the filesystem consistency aggressively.
  22. For daily use, say N.
  23. config EROFS_FS_XATTR
  24. bool "EROFS extended attributes"
  25. depends on EROFS_FS
  26. default y
  27. help
  28. Extended attributes are name:value pairs associated with inodes by
  29. the kernel or by users (see the attr(5) manual page, or visit
  30. <http://acl.bestbits.at/> for details).
  31. If unsure, say N.
  32. config EROFS_FS_POSIX_ACL
  33. bool "EROFS Access Control Lists"
  34. depends on EROFS_FS_XATTR
  35. select FS_POSIX_ACL
  36. default y
  37. help
  38. Posix Access Control Lists (ACLs) support permissions for users and
  39. groups beyond the owner/group/world scheme.
  40. To learn more about Access Control Lists, visit the POSIX ACLs for
  41. Linux website <http://acl.bestbits.at/>.
  42. If you don't know what Access Control Lists are, say N.
  43. config EROFS_FS_SECURITY
  44. bool "EROFS Security Labels"
  45. depends on EROFS_FS_XATTR
  46. help
  47. Security labels provide an access control facility to support Linux
  48. Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
  49. Linux. This option enables an extended attribute handler for file
  50. security labels in the erofs filesystem, so that it requires enabling
  51. the extended attribute support in advance.
  52. If you are not using a security module, say N.
  53. config EROFS_FS_USE_VM_MAP_RAM
  54. bool "EROFS VM_MAP_RAM Support"
  55. depends on EROFS_FS
  56. help
  57. use vm_map_ram/vm_unmap_ram instead of vmap/vunmap.
  58. If you don't know what these are, say N.
  59. config EROFS_FAULT_INJECTION
  60. bool "EROFS fault injection facility"
  61. depends on EROFS_FS
  62. help
  63. Test EROFS to inject faults such as ENOMEM, EIO, and so on.
  64. If unsure, say N.
  65. config EROFS_FS_ZIP
  66. bool "EROFS Data Compresssion Support"
  67. depends on EROFS_FS
  68. help
  69. Currently we support VLE Compression only.
  70. Play at your own risk.
  71. If you don't want to use compression feature, say N.
  72. config EROFS_FS_CLUSTER_PAGE_LIMIT
  73. int "EROFS Cluster Pages Hard Limit"
  74. depends on EROFS_FS_ZIP
  75. range 1 256
  76. default "1"
  77. help
  78. Indicates VLE compressed pages hard limit of a
  79. compressed cluster.
  80. For example, if files of a image are compressed
  81. into 8k-unit, the hard limit should not be less
  82. than 2. Otherwise, the image cannot be mounted
  83. correctly on this kernel.
  84. choice
  85. prompt "EROFS VLE Data Decompression mode"
  86. depends on EROFS_FS_ZIP
  87. default EROFS_FS_ZIP_CACHE_BIPOLAR
  88. help
  89. EROFS supports three options for VLE decompression.
  90. "In-place Decompression Only" consumes the minimum memory
  91. with lowest random read.
  92. "Bipolar Cached Decompression" consumes the maximum memory
  93. with highest random read.
  94. If unsure, select "Bipolar Cached Decompression"
  95. config EROFS_FS_ZIP_NO_CACHE
  96. bool "In-place Decompression Only"
  97. help
  98. Read compressed data into page cache and do in-place
  99. decompression directly.
  100. config EROFS_FS_ZIP_CACHE_UNIPOLAR
  101. bool "Unipolar Cached Decompression"
  102. help
  103. For each request, it caches the last compressed page
  104. for further reading.
  105. It still decompresses in place for the rest compressed pages.
  106. config EROFS_FS_ZIP_CACHE_BIPOLAR
  107. bool "Bipolar Cached Decompression"
  108. help
  109. For each request, it caches the both end compressed pages
  110. for further reading.
  111. It still decompresses in place for the rest compressed pages.
  112. Recommended for performance priority.
  113. endchoice