forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/fs/ubifs/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 config UBIFS_FS
23 tristate "UBIFS file system support"
34 select CRC16
....@@ -5,17 +6,21 @@
56 select CRYPTO if UBIFS_FS_ADVANCED_COMPR
67 select CRYPTO if UBIFS_FS_LZO
78 select CRYPTO if UBIFS_FS_ZLIB
9
+ select CRYPTO if UBIFS_FS_ZSTD
810 select CRYPTO_LZO if UBIFS_FS_LZO
911 select CRYPTO_DEFLATE if UBIFS_FS_ZLIB
12
+ select CRYPTO_ZSTD if UBIFS_FS_ZSTD
13
+ select CRYPTO_HASH_INFO
1014 select UBIFS_FS_XATTR if FS_ENCRYPTION
1115 select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
1216 depends on MTD_UBI
1317 help
1418 UBIFS is a file system for flash devices which works on top of UBI.
1519
20
+if UBIFS_FS
21
+
1622 config UBIFS_FS_ADVANCED_COMPR
1723 bool "Advanced compression options"
18
- depends on UBIFS_FS
1924 help
2025 This option allows to explicitly choose which compressions, if any,
2126 are enabled in UBIFS. Removing compressors means inability to read
....@@ -25,7 +30,6 @@
2530
2631 config UBIFS_FS_LZO
2732 bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR
28
- depends on UBIFS_FS
2933 default y
3034 help
3135 LZO compressor is generally faster than zlib but compresses worse.
....@@ -33,14 +37,20 @@
3337
3438 config UBIFS_FS_ZLIB
3539 bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR
36
- depends on UBIFS_FS
3740 default y
3841 help
3942 Zlib compresses better than LZO but it is slower. Say 'Y' if unsure.
4043
41
-config UBIFS_ATIME_SUPPORT
42
- bool "Access time support" if UBIFS_FS
44
+config UBIFS_FS_ZSTD
45
+ bool "ZSTD compression support" if UBIFS_FS_ADVANCED_COMPR
4346 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
+
52
+config UBIFS_ATIME_SUPPORT
53
+ bool "Access time support"
4454 default n
4555 help
4656 Originally UBIFS did not support atime, because it looked like a bad idea due
....@@ -55,7 +65,6 @@
5565
5666 config UBIFS_FS_XATTR
5767 bool "UBIFS XATTR support"
58
- depends on UBIFS_FS
5968 default y
6069 help
6170 Saying Y here includes support for extended attributes (xattrs).
....@@ -66,7 +75,7 @@
6675
6776 config UBIFS_FS_SECURITY
6877 bool "UBIFS Security Labels"
69
- depends on UBIFS_FS && UBIFS_FS_XATTR
78
+ depends on UBIFS_FS_XATTR
7079 default y
7180 help
7281 Security labels provide an access control facility to support Linux
....@@ -76,3 +85,17 @@
7685 the extended attribute support in advance.
7786
7887 If you are not using a security module, say N.
88
+
89
+config UBIFS_FS_AUTHENTICATION
90
+ bool "UBIFS authentication support"
91
+ select KEYS
92
+ select CRYPTO_HMAC
93
+ select SYSTEM_DATA_VERIFICATION
94
+ 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.
100
+
101
+endif # UBIFS_FS