Kconfig 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config F2FS_FS
  3. tristate "F2FS filesystem support"
  4. depends on BLOCK
  5. select NLS
  6. select CRYPTO
  7. select CRYPTO_CRC32
  8. select F2FS_FS_XATTR if FS_ENCRYPTION
  9. select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
  10. select FS_IOMAP
  11. select LZ4_COMPRESS if F2FS_FS_LZ4
  12. select LZ4_DECOMPRESS if F2FS_FS_LZ4
  13. select LZ4HC_COMPRESS if F2FS_FS_LZ4HC
  14. select LZO_COMPRESS if F2FS_FS_LZO
  15. select LZO_DECOMPRESS if F2FS_FS_LZO
  16. select ZSTD_COMPRESS if F2FS_FS_ZSTD
  17. select ZSTD_DECOMPRESS if F2FS_FS_ZSTD
  18. help
  19. F2FS is based on Log-structured File System (LFS), which supports
  20. versatile "flash-friendly" features. The design has been focused on
  21. addressing the fundamental issues in LFS, which are snowball effect
  22. of wandering tree and high cleaning overhead.
  23. Since flash-based storages show different characteristics according to
  24. the internal geometry or flash memory management schemes aka FTL, F2FS
  25. and tools support various parameters not only for configuring on-disk
  26. layout, but also for selecting allocation and cleaning algorithms.
  27. If unsure, say N.
  28. config F2FS_STAT_FS
  29. bool "F2FS Status Information"
  30. depends on F2FS_FS
  31. default y
  32. help
  33. /sys/kernel/debug/f2fs/ contains information about all the partitions
  34. mounted as f2fs. Each file shows the whole f2fs information.
  35. /sys/kernel/debug/f2fs/status includes:
  36. - major filesystem information managed by f2fs currently
  37. - average SIT information about whole segments
  38. - current memory footprint consumed by f2fs.
  39. config F2FS_FS_XATTR
  40. bool "F2FS extended attributes"
  41. depends on F2FS_FS
  42. default y
  43. help
  44. Extended attributes are name:value pairs associated with inodes by
  45. the kernel or by users (see the attr(5) manual page for details).
  46. If unsure, say N.
  47. config F2FS_FS_POSIX_ACL
  48. bool "F2FS Access Control Lists"
  49. depends on F2FS_FS_XATTR
  50. select FS_POSIX_ACL
  51. default y
  52. help
  53. Posix Access Control Lists (ACLs) support permissions for users and
  54. groups beyond the owner/group/world scheme.
  55. If you don't know what Access Control Lists are, say N
  56. config F2FS_FS_SECURITY
  57. bool "F2FS Security Labels"
  58. depends on F2FS_FS_XATTR
  59. help
  60. Security labels provide an access control facility to support Linux
  61. Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
  62. Linux. This option enables an extended attribute handler for file
  63. security labels in the f2fs filesystem, so that it requires enabling
  64. the extended attribute support in advance. In particular you need this
  65. option if you use the setcap command to assign initial process capabi-
  66. lities to executables (the security.* extended attributes).
  67. If you are not using a security module, say N.
  68. config F2FS_CHECK_FS
  69. bool "F2FS consistency checking feature"
  70. depends on F2FS_FS
  71. help
  72. Enables BUG_ONs which check the filesystem consistency in runtime.
  73. If you want to improve the performance, say N.
  74. config F2FS_FAULT_INJECTION
  75. bool "F2FS fault injection facility"
  76. depends on F2FS_FS
  77. help
  78. Test F2FS to inject faults such as ENOMEM, ENOSPC, and so on.
  79. If unsure, say N.
  80. config F2FS_FS_COMPRESSION
  81. bool "F2FS compression feature"
  82. depends on F2FS_FS
  83. help
  84. Enable filesystem-level compression on f2fs regular files,
  85. multiple back-end compression algorithms are supported.
  86. config F2FS_FS_LZO
  87. bool "LZO compression support"
  88. depends on F2FS_FS_COMPRESSION
  89. default y
  90. help
  91. Support LZO compress algorithm, if unsure, say Y.
  92. config F2FS_FS_LZORLE
  93. bool "LZO-RLE compression support"
  94. depends on F2FS_FS_LZO
  95. default y
  96. help
  97. Support LZO-RLE compress algorithm, if unsure, say Y.
  98. config F2FS_FS_LZ4
  99. bool "LZ4 compression support"
  100. depends on F2FS_FS_COMPRESSION
  101. default y
  102. help
  103. Support LZ4 compress algorithm, if unsure, say Y.
  104. config F2FS_FS_LZ4HC
  105. bool "LZ4HC compression support"
  106. depends on F2FS_FS_LZ4
  107. default y
  108. help
  109. Support LZ4HC compress algorithm, LZ4HC has compatible on-disk
  110. layout with LZ4, if unsure, say Y.
  111. config F2FS_FS_ZSTD
  112. bool "ZSTD compression support"
  113. depends on F2FS_FS_COMPRESSION
  114. default y
  115. help
  116. Support ZSTD compress algorithm, if unsure, say Y.
  117. config F2FS_IOSTAT
  118. bool "F2FS IO statistics information"
  119. depends on F2FS_FS
  120. default y
  121. help
  122. Support getting IO statistics through sysfs and printing out periodic
  123. IO statistics tracepoint events. You have to turn on "iostat_enable"
  124. sysfs node to enable this feature.
  125. config F2FS_UNFAIR_RWSEM
  126. bool "F2FS unfair rw_semaphore"
  127. depends on F2FS_FS && BLK_CGROUP
  128. help
  129. Use unfair rw_semaphore, if system configured IO priority by block
  130. cgroup.