Kconfig 4.1 KB

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