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