1 # SPDX-License-Identifier: GPL-2.0-only 1 # SPDX-License-Identifier: GPL-2.0-only 2 config UBIFS_FS 2 config UBIFS_FS 3 tristate "UBIFS file system support" 3 tristate "UBIFS file system support" 4 select CRC16 4 select CRC16 5 select CRC32 5 select CRC32 6 select CRYPTO if UBIFS_FS_ADVANCED_COM 6 select CRYPTO if UBIFS_FS_ADVANCED_COMPR 7 select CRYPTO if UBIFS_FS_LZO 7 select CRYPTO if UBIFS_FS_LZO 8 select CRYPTO if UBIFS_FS_ZLIB 8 select CRYPTO if UBIFS_FS_ZLIB 9 select CRYPTO if UBIFS_FS_ZSTD 9 select CRYPTO if UBIFS_FS_ZSTD 10 select CRYPTO_LZO if UBIFS_FS_LZO 10 select CRYPTO_LZO if UBIFS_FS_LZO 11 select CRYPTO_DEFLATE if UBIFS_FS_ZLIB 11 select CRYPTO_DEFLATE if UBIFS_FS_ZLIB 12 select CRYPTO_ZSTD if UBIFS_FS_ZSTD 12 select CRYPTO_ZSTD if UBIFS_FS_ZSTD 13 select CRYPTO_HASH_INFO 13 select CRYPTO_HASH_INFO 14 select UBIFS_FS_XATTR if FS_ENCRYPTION 14 select UBIFS_FS_XATTR if FS_ENCRYPTION 15 select FS_ENCRYPTION_ALGS if FS_ENCRYP << 16 depends on MTD_UBI 15 depends on MTD_UBI 17 help 16 help 18 UBIFS is a file system for flash dev 17 UBIFS is a file system for flash devices which works on top of UBI. 19 18 20 if UBIFS_FS 19 if UBIFS_FS 21 20 22 config UBIFS_FS_ADVANCED_COMPR 21 config UBIFS_FS_ADVANCED_COMPR 23 bool "Advanced compression options" 22 bool "Advanced compression options" 24 help 23 help 25 This option allows to explicitly cho 24 This option allows to explicitly choose which compressions, if any, 26 are enabled in UBIFS. Removing compr 25 are enabled in UBIFS. Removing compressors means inability to read 27 existing file systems. 26 existing file systems. 28 27 29 If unsure, say 'N'. 28 If unsure, say 'N'. 30 29 31 config UBIFS_FS_LZO 30 config UBIFS_FS_LZO 32 bool "LZO compression support" if UBIF 31 bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR 33 default y 32 default y 34 help 33 help 35 LZO compressor is generally faster 34 LZO compressor is generally faster than zlib but compresses worse. 36 Say 'Y' if unsure. 35 Say 'Y' if unsure. 37 36 38 config UBIFS_FS_ZLIB 37 config UBIFS_FS_ZLIB 39 bool "ZLIB compression support" if UBI 38 bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR 40 default y 39 default y 41 help 40 help 42 Zlib compresses better than LZO but 41 Zlib compresses better than LZO but it is slower. Say 'Y' if unsure. 43 42 44 config UBIFS_FS_ZSTD 43 config UBIFS_FS_ZSTD 45 bool "ZSTD compression support" if UBI 44 bool "ZSTD compression support" if UBIFS_FS_ADVANCED_COMPR 46 depends on UBIFS_FS 45 depends on UBIFS_FS 47 default y 46 default y 48 help 47 help 49 ZSTD compresses is a big win in spee 48 ZSTD compresses is a big win in speed over Zlib and 50 in compression ratio over LZO. Say ' 49 in compression ratio over LZO. Say 'Y' if unsure. 51 50 52 config UBIFS_ATIME_SUPPORT 51 config UBIFS_ATIME_SUPPORT 53 bool "Access time support" 52 bool "Access time support" 54 default n 53 default n 55 help 54 help 56 Originally UBIFS did not support ati 55 Originally UBIFS did not support atime, because it looked like a bad idea due 57 increased flash wear. This option ad 56 increased flash wear. This option adds atime support and it is disabled by default 58 to preserve the old behavior. If you 57 to preserve the old behavior. If you enable this option, UBIFS starts updating atime, 59 which means that file-system read op 58 which means that file-system read operations will cause writes (inode atime 60 updates). This may affect file-syste 59 updates). This may affect file-system performance and increase flash device wear, 61 so be careful. How often atime is up 60 so be careful. How often atime is updated depends on the selected strategy: 62 strictatime is the "heavy", relatime 61 strictatime is the "heavy", relatime is "lighter", etc. 63 62 64 If unsure, say 'N' 63 If unsure, say 'N' 65 64 66 config UBIFS_FS_XATTR 65 config UBIFS_FS_XATTR 67 bool "UBIFS XATTR support" 66 bool "UBIFS XATTR support" 68 default y 67 default y 69 help 68 help 70 Saying Y here includes support for e 69 Saying Y here includes support for extended attributes (xattrs). 71 Xattrs are name:value pairs associat 70 Xattrs are name:value pairs associated with inodes by 72 the kernel or by users (see the attr 71 the kernel or by users (see the attr(5) manual page). 73 72 74 If unsure, say Y. 73 If unsure, say Y. 75 74 76 config UBIFS_FS_SECURITY 75 config UBIFS_FS_SECURITY 77 bool "UBIFS Security Labels" 76 bool "UBIFS Security Labels" 78 depends on UBIFS_FS_XATTR 77 depends on UBIFS_FS_XATTR 79 default y 78 default y 80 help 79 help 81 Security labels provide an access co 80 Security labels provide an access control facility to support Linux 82 Security Models (LSMs) accepted by A 81 Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO 83 Linux. This option enables an extend 82 Linux. This option enables an extended attribute handler for file 84 security labels in the ubifs filesys 83 security labels in the ubifs filesystem, so that it requires enabling 85 the extended attribute support in ad 84 the extended attribute support in advance. 86 85 87 If you are not using a security modu 86 If you are not using a security module, say N. 88 87 89 config UBIFS_FS_AUTHENTICATION 88 config UBIFS_FS_AUTHENTICATION 90 bool "UBIFS authentication support" 89 bool "UBIFS authentication support" 91 select KEYS 90 select KEYS 92 select CRYPTO_HMAC 91 select CRYPTO_HMAC 93 select SYSTEM_DATA_VERIFICATION 92 select SYSTEM_DATA_VERIFICATION 94 help 93 help 95 Enable authentication support for UB 94 Enable authentication support for UBIFS. This feature offers protection 96 against offline changes for both dat 95 against offline changes for both data and metadata of the filesystem. 97 If you say yes here you should also 96 If you say yes here you should also select a hashing algorithm such as 98 sha256, these are not selected autom 97 sha256, these are not selected automatically since there are many 99 different options. 98 different options. 100 99 101 endif # UBIFS_FS 100 endif # UBIFS_FS
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.