blob: bc1e082d921d152a6df154378320ff4e5f3bce94 [file] [log] [blame]
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +03001config UBIFS_FS
2 tristate "UBIFS file system support"
3 select CRC16
4 select CRC32
5 select CRYPTO if UBIFS_FS_ADVANCED_COMPR
6 select CRYPTO if UBIFS_FS_LZO
7 select CRYPTO if UBIFS_FS_ZLIB
8 select CRYPTO_LZO if UBIFS_FS_LZO
9 select CRYPTO_DEFLATE if UBIFS_FS_ZLIB
Sascha Hauer49525e52018-09-07 14:36:32 +020010 select CRYPTO_HASH_INFO
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030011 depends on MTD_UBI
12 help
13 UBIFS is a file system for flash devices which works on top of UBI.
14
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010015if UBIFS_FS
16
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030017config UBIFS_FS_ADVANCED_COMPR
18 bool "Advanced compression options"
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030019 help
20 This option allows to explicitly choose which compressions, if any,
Matt LaPlante692105b2009-01-26 11:12:25 +010021 are enabled in UBIFS. Removing compressors means inability to read
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030022 existing file systems.
23
24 If unsure, say 'N'.
25
26config UBIFS_FS_LZO
27 bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030028 default y
29 help
Matt LaPlante692105b2009-01-26 11:12:25 +010030 LZO compressor is generally faster than zlib but compresses worse.
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030031 Say 'Y' if unsure.
32
33config UBIFS_FS_ZLIB
34 bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030035 default y
36 help
Frederik Schwarzer025dfda2008-10-16 19:02:37 +020037 Zlib compresses better than LZO but it is slower. Say 'Y' if unsure.
Dongsheng Yang8c1c5f22015-11-07 12:46:11 +080038
39config UBIFS_ATIME_SUPPORT
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010040 bool "Access time support"
Dongsheng Yang8c1c5f22015-11-07 12:46:11 +080041 default n
42 help
43 Originally UBIFS did not support atime, because it looked like a bad idea due
44 increased flash wear. This option adds atime support and it is disabled by default
45 to preserve the old behavior. If you enable this option, UBIFS starts updating atime,
46 which means that file-system read operations will cause writes (inode atime
47 updates). This may affect file-system performance and increase flash device wear,
48 so be careful. How often atime is updated depends on the selected strategy:
49 strictatime is the "heavy", relatime is "lighter", etc.
50
51 If unsure, say 'N'
Richard Weinbergerd475a502016-10-20 16:47:56 +020052
Stefan Agner7e5471c2018-07-31 15:13:20 +020053config UBIFS_FS_XATTR
54 bool "UBIFS XATTR support"
Stefan Agner7e5471c2018-07-31 15:13:20 +020055 default y
56 help
57 Saying Y here includes support for extended attributes (xattrs).
58 Xattrs are name:value pairs associated with inodes by
59 the kernel or by users (see the attr(5) manual page).
60
61 If unsure, say Y.
62
Richard Weinbergerd475a502016-10-20 16:47:56 +020063config UBIFS_FS_ENCRYPTION
64 bool "UBIFS Encryption"
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010065 depends on UBIFS_FS_XATTR && BLOCK
Richard Weinbergerd475a502016-10-20 16:47:56 +020066 select FS_ENCRYPTION
67 default n
68 help
69 Enable encryption of UBIFS files and directories. This
70 feature is similar to ecryptfs, but it is more memory
71 efficient since it avoids caching the encrypted and
72 decrypted pages in the page cache.
Hyunchul Lee8326c1e2017-03-03 16:44:03 +090073
74config UBIFS_FS_SECURITY
75 bool "UBIFS Security Labels"
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010076 depends on UBIFS_FS_XATTR
Hyunchul Lee8326c1e2017-03-03 16:44:03 +090077 default y
78 help
79 Security labels provide an access control facility to support Linux
80 Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
81 Linux. This option enables an extended attribute handler for file
82 security labels in the ubifs filesystem, so that it requires enabling
83 the extended attribute support in advance.
84
85 If you are not using a security module, say N.
Sascha Hauerd8a22772018-09-07 14:36:45 +020086
87config UBIFS_FS_AUTHENTICATION
88 bool "UBIFS authentication support"
Arnd Bergmann60eb5da2018-11-02 12:11:22 +010089 depends on KEYS
Sascha Hauerd8a22772018-09-07 14:36:45 +020090 select CRYPTO_HMAC
91 help
92 Enable authentication support for UBIFS. This feature offers protection
93 against offline changes for both data and metadata of the filesystem.
94 If you say yes here you should also select a hashing algorithm such as
95 sha256, these are not selected automatically since there are many
96 different options.
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010097
98endif # UBIFS_FS