xref: /linux/fs/ubifs/Kconfig (revision aa3d31e08c5707c99feebe53cb713fb43f526f16)
10d7eff87SArtem Bityutskiyconfig UBIFS_FS
20d7eff87SArtem Bityutskiy	tristate "UBIFS file system support"
30d7eff87SArtem Bityutskiy	select CRC16
40d7eff87SArtem Bityutskiy	select CRC32
50d7eff87SArtem Bityutskiy	select CRYPTO if UBIFS_FS_ADVANCED_COMPR
60d7eff87SArtem Bityutskiy	select CRYPTO if UBIFS_FS_LZO
70d7eff87SArtem Bityutskiy	select CRYPTO if UBIFS_FS_ZLIB
80d7eff87SArtem Bityutskiy	select CRYPTO_LZO if UBIFS_FS_LZO
90d7eff87SArtem Bityutskiy	select CRYPTO_DEFLATE if UBIFS_FS_ZLIB
1049525e5eSSascha Hauer	select CRYPTO_HASH_INFO
110d7eff87SArtem Bityutskiy	depends on MTD_UBI
120d7eff87SArtem Bityutskiy	help
130d7eff87SArtem Bityutskiy	  UBIFS is a file system for flash devices which works on top of UBI.
140d7eff87SArtem Bityutskiy
15*aa3d31e0SGeert Uytterhoevenif UBIFS_FS
16*aa3d31e0SGeert Uytterhoeven
170d7eff87SArtem Bityutskiyconfig UBIFS_FS_ADVANCED_COMPR
180d7eff87SArtem Bityutskiy	bool "Advanced compression options"
190d7eff87SArtem Bityutskiy	help
200d7eff87SArtem Bityutskiy	  This option allows to explicitly choose which compressions, if any,
21692105b8SMatt LaPlante	  are enabled in UBIFS. Removing compressors means inability to read
220d7eff87SArtem Bityutskiy	  existing file systems.
230d7eff87SArtem Bityutskiy
240d7eff87SArtem Bityutskiy	  If unsure, say 'N'.
250d7eff87SArtem Bityutskiy
260d7eff87SArtem Bityutskiyconfig UBIFS_FS_LZO
270d7eff87SArtem Bityutskiy	bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR
280d7eff87SArtem Bityutskiy	default y
290d7eff87SArtem Bityutskiy	help
30692105b8SMatt LaPlante	   LZO compressor is generally faster than zlib but compresses worse.
310d7eff87SArtem Bityutskiy	   Say 'Y' if unsure.
320d7eff87SArtem Bityutskiy
330d7eff87SArtem Bityutskiyconfig UBIFS_FS_ZLIB
340d7eff87SArtem Bityutskiy	bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR
350d7eff87SArtem Bityutskiy	default y
360d7eff87SArtem Bityutskiy	help
37025dfdafSFrederik Schwarzer	  Zlib compresses better than LZO but it is slower. Say 'Y' if unsure.
388c1c5f26SDongsheng Yang
398c1c5f26SDongsheng Yangconfig UBIFS_ATIME_SUPPORT
40*aa3d31e0SGeert Uytterhoeven	bool "Access time support"
418c1c5f26SDongsheng Yang	default n
428c1c5f26SDongsheng Yang	help
438c1c5f26SDongsheng Yang	  Originally UBIFS did not support atime, because it looked like a bad idea due
448c1c5f26SDongsheng Yang	  increased flash wear. This option adds atime support and it is disabled by default
458c1c5f26SDongsheng Yang	  to preserve the old behavior. If you enable this option, UBIFS starts updating atime,
468c1c5f26SDongsheng Yang	  which means that file-system read operations will cause writes (inode atime
478c1c5f26SDongsheng Yang	  updates). This may affect file-system performance and increase flash device wear,
488c1c5f26SDongsheng Yang	  so be careful. How often atime is updated depends on the selected strategy:
498c1c5f26SDongsheng Yang	  strictatime is the "heavy", relatime is "lighter", etc.
508c1c5f26SDongsheng Yang
518c1c5f26SDongsheng Yang	  If unsure, say 'N'
52d475a507SRichard Weinberger
537e5471ceSStefan Agnerconfig UBIFS_FS_XATTR
547e5471ceSStefan Agner	bool "UBIFS XATTR support"
557e5471ceSStefan Agner	default y
567e5471ceSStefan Agner	help
577e5471ceSStefan Agner	  Saying Y here includes support for extended attributes (xattrs).
587e5471ceSStefan Agner	  Xattrs are name:value pairs associated with inodes by
597e5471ceSStefan Agner	  the kernel or by users (see the attr(5) manual page).
607e5471ceSStefan Agner
617e5471ceSStefan Agner	  If unsure, say Y.
627e5471ceSStefan Agner
63d475a507SRichard Weinbergerconfig UBIFS_FS_ENCRYPTION
64d475a507SRichard Weinberger	bool "UBIFS Encryption"
65*aa3d31e0SGeert Uytterhoeven	depends on UBIFS_FS_XATTR && BLOCK
66d475a507SRichard Weinberger	select FS_ENCRYPTION
67d475a507SRichard Weinberger	default n
68d475a507SRichard Weinberger	help
69d475a507SRichard Weinberger	  Enable encryption of UBIFS files and directories. This
70d475a507SRichard Weinberger	  feature is similar to ecryptfs, but it is more memory
71d475a507SRichard Weinberger	  efficient since it avoids caching the encrypted and
72d475a507SRichard Weinberger	  decrypted pages in the page cache.
738326c1eeSHyunchul Lee
748326c1eeSHyunchul Leeconfig UBIFS_FS_SECURITY
758326c1eeSHyunchul Lee	bool "UBIFS Security Labels"
76*aa3d31e0SGeert Uytterhoeven	depends on UBIFS_FS_XATTR
778326c1eeSHyunchul Lee	default y
788326c1eeSHyunchul Lee	help
798326c1eeSHyunchul Lee	  Security labels provide an access control facility to support Linux
808326c1eeSHyunchul Lee	  Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
818326c1eeSHyunchul Lee	  Linux. This option enables an extended attribute handler for file
828326c1eeSHyunchul Lee	  security labels in the ubifs filesystem, so that it requires enabling
838326c1eeSHyunchul Lee	  the extended attribute support in advance.
848326c1eeSHyunchul Lee
858326c1eeSHyunchul Lee	  If you are not using a security module, say N.
86d8a22773SSascha Hauer
87d8a22773SSascha Hauerconfig UBIFS_FS_AUTHENTICATION
88d8a22773SSascha Hauer	bool "UBIFS authentication support"
89d8a22773SSascha Hauer	select CRYPTO_HMAC
90d8a22773SSascha Hauer	help
91d8a22773SSascha Hauer	  Enable authentication support for UBIFS. This feature offers protection
92d8a22773SSascha Hauer	  against offline changes for both data and metadata of the filesystem.
93d8a22773SSascha Hauer	  If you say yes here you should also select a hashing algorithm such as
94d8a22773SSascha Hauer	  sha256, these are not selected automatically since there are many
95d8a22773SSascha Hauer	  different options.
96*aa3d31e0SGeert Uytterhoeven
97*aa3d31e0SGeert Uytterhoevenendif # UBIFS_FS
98