blob: 69932bcfa92081c1f6826216dcc05b663437a6bb [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +03002config 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
Michele Dionisioeeabb982019-05-15 23:02:02 +02009 select CRYPTO if UBIFS_FS_ZSTD
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030010 select CRYPTO_LZO if UBIFS_FS_LZO
11 select CRYPTO_DEFLATE if UBIFS_FS_ZLIB
Michele Dionisioeeabb982019-05-15 23:02:02 +020012 select CRYPTO_ZSTD if UBIFS_FS_ZSTD
Sascha Hauer49525e52018-09-07 14:36:32 +020013 select CRYPTO_HASH_INFO
Chandan Rajendra643fa962018-12-12 15:20:12 +053014 select UBIFS_FS_XATTR if FS_ENCRYPTION
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030015 depends on MTD_UBI
16 help
17 UBIFS is a file system for flash devices which works on top of UBI.
18
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010019if UBIFS_FS
20
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030021config UBIFS_FS_ADVANCED_COMPR
22 bool "Advanced compression options"
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030023 help
24 This option allows to explicitly choose which compressions, if any,
Matt LaPlante692105b2009-01-26 11:12:25 +010025 are enabled in UBIFS. Removing compressors means inability to read
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030026 existing file systems.
27
28 If unsure, say 'N'.
29
30config UBIFS_FS_LZO
31 bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030032 default y
33 help
Matt LaPlante692105b2009-01-26 11:12:25 +010034 LZO compressor is generally faster than zlib but compresses worse.
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030035 Say 'Y' if unsure.
36
37config UBIFS_FS_ZLIB
38 bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030039 default y
40 help
Frederik Schwarzer025dfda2008-10-16 19:02:37 +020041 Zlib compresses better than LZO but it is slower. Say 'Y' if unsure.
Dongsheng Yang8c1c5f22015-11-07 12:46:11 +080042
Michele Dionisioeeabb982019-05-15 23:02:02 +020043config UBIFS_FS_ZSTD
44 bool "ZSTD compression support" if UBIFS_FS_ADVANCED_COMPR
45 depends on UBIFS_FS
46 default y
47 help
48 ZSTD compresses is a big win in speed over Zlib and
49 in compression ratio over LZO. Say 'Y' if unsure.
50
Dongsheng Yang8c1c5f22015-11-07 12:46:11 +080051config UBIFS_ATIME_SUPPORT
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010052 bool "Access time support"
Dongsheng Yang8c1c5f22015-11-07 12:46:11 +080053 default n
54 help
55 Originally UBIFS did not support atime, because it looked like a bad idea due
56 increased flash wear. This option adds atime support and it is disabled by default
57 to preserve the old behavior. If you enable this option, UBIFS starts updating atime,
58 which means that file-system read operations will cause writes (inode atime
59 updates). This may affect file-system performance and increase flash device wear,
60 so be careful. How often atime is updated depends on the selected strategy:
61 strictatime is the "heavy", relatime is "lighter", etc.
62
63 If unsure, say 'N'
Richard Weinbergerd475a502016-10-20 16:47:56 +020064
Stefan Agner7e5471c2018-07-31 15:13:20 +020065config UBIFS_FS_XATTR
66 bool "UBIFS XATTR support"
Stefan Agner7e5471c2018-07-31 15:13:20 +020067 default y
68 help
69 Saying Y here includes support for extended attributes (xattrs).
70 Xattrs are name:value pairs associated with inodes by
71 the kernel or by users (see the attr(5) manual page).
72
73 If unsure, say Y.
74
Hyunchul Lee8326c1e2017-03-03 16:44:03 +090075config UBIFS_FS_SECURITY
76 bool "UBIFS Security Labels"
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010077 depends on UBIFS_FS_XATTR
Hyunchul Lee8326c1e2017-03-03 16:44:03 +090078 default y
79 help
80 Security labels provide an access control facility to support Linux
81 Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
82 Linux. This option enables an extended attribute handler for file
83 security labels in the ubifs filesystem, so that it requires enabling
84 the extended attribute support in advance.
85
86 If you are not using a security module, say N.
Sascha Hauerd8a22772018-09-07 14:36:45 +020087
88config UBIFS_FS_AUTHENTICATION
89 bool "UBIFS authentication support"
Sascha Hauer817aa092019-05-14 10:33:22 +020090 select KEYS
Sascha Hauerd8a22772018-09-07 14:36:45 +020091 select CRYPTO_HMAC
Sascha Hauer817aa092019-05-14 10:33:22 +020092 select SYSTEM_DATA_VERIFICATION
Sascha Hauerd8a22772018-09-07 14:36:45 +020093 help
94 Enable authentication support for UBIFS. This feature offers protection
95 against offline changes for both data and metadata of the filesystem.
96 If you say yes here you should also select a hashing algorithm such as
97 sha256, these are not selected automatically since there are many
98 different options.
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010099
100endif # UBIFS_FS