blob: 45d3d207fb99266d1f6fff305a965cf889a5fa66 [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
Herbert Xuede7a092019-12-27 10:47:00 +080015 select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030016 depends on MTD_UBI
17 help
18 UBIFS is a file system for flash devices which works on top of UBI.
19
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010020if UBIFS_FS
21
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030022config UBIFS_FS_ADVANCED_COMPR
23 bool "Advanced compression options"
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030024 help
25 This option allows to explicitly choose which compressions, if any,
Matt LaPlante692105b2009-01-26 11:12:25 +010026 are enabled in UBIFS. Removing compressors means inability to read
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030027 existing file systems.
28
29 If unsure, say 'N'.
30
31config UBIFS_FS_LZO
32 bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030033 default y
34 help
Matt LaPlante692105b2009-01-26 11:12:25 +010035 LZO compressor is generally faster than zlib but compresses worse.
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030036 Say 'Y' if unsure.
37
38config UBIFS_FS_ZLIB
39 bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030040 default y
41 help
Frederik Schwarzer025dfda2008-10-16 19:02:37 +020042 Zlib compresses better than LZO but it is slower. Say 'Y' if unsure.
Dongsheng Yang8c1c5f22015-11-07 12:46:11 +080043
Michele Dionisioeeabb982019-05-15 23:02:02 +020044config UBIFS_FS_ZSTD
45 bool "ZSTD compression support" if UBIFS_FS_ADVANCED_COMPR
46 depends on UBIFS_FS
47 default y
48 help
49 ZSTD compresses is a big win in speed over Zlib and
50 in compression ratio over LZO. Say 'Y' if unsure.
51
Dongsheng Yang8c1c5f22015-11-07 12:46:11 +080052config UBIFS_ATIME_SUPPORT
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010053 bool "Access time support"
Dongsheng Yang8c1c5f22015-11-07 12:46:11 +080054 default n
55 help
56 Originally UBIFS did not support atime, because it looked like a bad idea due
57 increased flash wear. This option adds atime support and it is disabled by default
58 to preserve the old behavior. If you enable this option, UBIFS starts updating atime,
59 which means that file-system read operations will cause writes (inode atime
60 updates). This may affect file-system performance and increase flash device wear,
61 so be careful. How often atime is updated depends on the selected strategy:
62 strictatime is the "heavy", relatime is "lighter", etc.
63
64 If unsure, say 'N'
Richard Weinbergerd475a502016-10-20 16:47:56 +020065
Stefan Agner7e5471c2018-07-31 15:13:20 +020066config UBIFS_FS_XATTR
67 bool "UBIFS XATTR support"
Stefan Agner7e5471c2018-07-31 15:13:20 +020068 default y
69 help
70 Saying Y here includes support for extended attributes (xattrs).
71 Xattrs are name:value pairs associated with inodes by
72 the kernel or by users (see the attr(5) manual page).
73
74 If unsure, say Y.
75
Hyunchul Lee8326c1e2017-03-03 16:44:03 +090076config UBIFS_FS_SECURITY
77 bool "UBIFS Security Labels"
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +010078 depends on UBIFS_FS_XATTR
Hyunchul Lee8326c1e2017-03-03 16:44:03 +090079 default y
80 help
81 Security labels provide an access control facility to support Linux
82 Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
83 Linux. This option enables an extended attribute handler for file
84 security labels in the ubifs filesystem, so that it requires enabling
85 the extended attribute support in advance.
86
87 If you are not using a security module, say N.
Sascha Hauerd8a22772018-09-07 14:36:45 +020088
89config UBIFS_FS_AUTHENTICATION
90 bool "UBIFS authentication support"
Sascha Hauer817aa092019-05-14 10:33:22 +020091 select KEYS
Sascha Hauerd8a22772018-09-07 14:36:45 +020092 select CRYPTO_HMAC
Sascha Hauer817aa092019-05-14 10:33:22 +020093 select SYSTEM_DATA_VERIFICATION
Sascha Hauerd8a22772018-09-07 14:36:45 +020094 help
95 Enable authentication support for UBIFS. This feature offers protection
96 against offline changes for both data and metadata of the filesystem.
97 If you say yes here you should also select a hashing algorithm such as
98 sha256, these are not selected automatically since there are many
99 different options.
Geert Uytterhoevenaa3d31e2018-11-05 09:25:40 +0100100
101endif # UBIFS_FS