Kconfig 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config UBIFS_FS
  3. tristate "UBIFS file system support"
  4. select CRC16
  5. select CRC32
  6. select CRYPTO if UBIFS_FS_ADVANCED_COMPR
  7. select CRYPTO if UBIFS_FS_LZO
  8. select CRYPTO if UBIFS_FS_ZLIB
  9. select CRYPTO if UBIFS_FS_ZSTD
  10. select CRYPTO_LZO if UBIFS_FS_LZO
  11. select CRYPTO_DEFLATE if UBIFS_FS_ZLIB
  12. select CRYPTO_ZSTD if UBIFS_FS_ZSTD
  13. select CRYPTO_HASH_INFO
  14. select UBIFS_FS_XATTR if FS_ENCRYPTION
  15. select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
  16. depends on MTD_UBI
  17. help
  18. UBIFS is a file system for flash devices which works on top of UBI.
  19. if UBIFS_FS
  20. config UBIFS_FS_ADVANCED_COMPR
  21. bool "Advanced compression options"
  22. help
  23. This option allows to explicitly choose which compressions, if any,
  24. are enabled in UBIFS. Removing compressors means inability to read
  25. existing file systems.
  26. If unsure, say 'N'.
  27. config UBIFS_FS_LZO
  28. bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR
  29. default y
  30. help
  31. LZO compressor is generally faster than zlib but compresses worse.
  32. Say 'Y' if unsure.
  33. config UBIFS_FS_ZLIB
  34. bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR
  35. default y
  36. help
  37. Zlib compresses better than LZO but it is slower. Say 'Y' if unsure.
  38. config UBIFS_FS_ZSTD
  39. bool "ZSTD compression support" if UBIFS_FS_ADVANCED_COMPR
  40. depends on UBIFS_FS
  41. default y
  42. help
  43. ZSTD compresses is a big win in speed over Zlib and
  44. in compression ratio over LZO. Say 'Y' if unsure.
  45. config UBIFS_ATIME_SUPPORT
  46. bool "Access time support"
  47. default n
  48. help
  49. Originally UBIFS did not support atime, because it looked like a bad idea due
  50. increased flash wear. This option adds atime support and it is disabled by default
  51. to preserve the old behavior. If you enable this option, UBIFS starts updating atime,
  52. which means that file-system read operations will cause writes (inode atime
  53. updates). This may affect file-system performance and increase flash device wear,
  54. so be careful. How often atime is updated depends on the selected strategy:
  55. strictatime is the "heavy", relatime is "lighter", etc.
  56. If unsure, say 'N'
  57. config UBIFS_FS_XATTR
  58. bool "UBIFS XATTR support"
  59. default y
  60. help
  61. Saying Y here includes support for extended attributes (xattrs).
  62. Xattrs are name:value pairs associated with inodes by
  63. the kernel or by users (see the attr(5) manual page).
  64. If unsure, say Y.
  65. config UBIFS_FS_SECURITY
  66. bool "UBIFS Security Labels"
  67. depends on UBIFS_FS_XATTR
  68. default y
  69. help
  70. Security labels provide an access control facility to support Linux
  71. Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
  72. Linux. This option enables an extended attribute handler for file
  73. security labels in the ubifs filesystem, so that it requires enabling
  74. the extended attribute support in advance.
  75. If you are not using a security module, say N.
  76. config UBIFS_FS_AUTHENTICATION
  77. bool "UBIFS authentication support"
  78. select KEYS
  79. select CRYPTO_HMAC
  80. select SYSTEM_DATA_VERIFICATION
  81. help
  82. Enable authentication support for UBIFS. This feature offers protection
  83. against offline changes for both data and metadata of the filesystem.
  84. If you say yes here you should also select a hashing algorithm such as
  85. sha256, these are not selected automatically since there are many
  86. different options.
  87. endif # UBIFS_FS