102 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2config UBIFS_FS3 tristate "UBIFS file system support"4 select CRC165 select CRC326 select CRYPTO if UBIFS_FS_ADVANCED_COMPR7 select CRYPTO if UBIFS_FS_LZO8 select CRYPTO if UBIFS_FS_ZLIB9 select CRYPTO if UBIFS_FS_ZSTD10 select CRYPTO_LZO if UBIFS_FS_LZO11 select CRYPTO_DEFLATE if UBIFS_FS_ZLIB12 select CRYPTO_ZSTD if UBIFS_FS_ZSTD13 select CRYPTO_HASH_INFO14 select UBIFS_FS_XATTR if FS_ENCRYPTION15 select FS_ENCRYPTION_ALGS if FS_ENCRYPTION16 depends on MTD_UBI17 help18 UBIFS is a file system for flash devices which works on top of UBI.19 20if UBIFS_FS21 22config UBIFS_FS_ADVANCED_COMPR23 bool "Advanced compression options"24 help25 This option allows to explicitly choose which compressions, if any,26 are enabled in UBIFS. Removing compressors means inability to read27 existing file systems.28 29 If unsure, say 'N'.30 31config UBIFS_FS_LZO32 bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR33 default y34 help35 LZO compressor is generally faster than zlib but compresses worse.36 Say 'Y' if unsure.37 38config UBIFS_FS_ZLIB39 bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR40 default y41 help42 Zlib compresses better than LZO but it is slower. Say 'Y' if unsure.43 44config UBIFS_FS_ZSTD45 bool "ZSTD compression support" if UBIFS_FS_ADVANCED_COMPR46 depends on UBIFS_FS47 default y48 help49 ZSTD compresses is a big win in speed over Zlib and50 in compression ratio over LZO. Say 'Y' if unsure.51 52config UBIFS_ATIME_SUPPORT53 bool "Access time support"54 default n55 help56 Originally UBIFS did not support atime, because it looked like a bad idea due57 increased flash wear. This option adds atime support and it is disabled by default58 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 atime60 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'65 66config UBIFS_FS_XATTR67 bool "UBIFS XATTR support"68 default y69 help70 Saying Y here includes support for extended attributes (xattrs).71 Xattrs are name:value pairs associated with inodes by72 the kernel or by users (see the attr(5) manual page).73 74 If unsure, say Y.75 76config UBIFS_FS_SECURITY77 bool "UBIFS Security Labels"78 depends on UBIFS_FS_XATTR79 default y80 help81 Security labels provide an access control facility to support Linux82 Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO83 Linux. This option enables an extended attribute handler for file84 security labels in the ubifs filesystem, so that it requires enabling85 the extended attribute support in advance.86 87 If you are not using a security module, say N.88 89config UBIFS_FS_AUTHENTICATION90 bool "UBIFS authentication support"91 select KEYS92 select CRYPTO_HMAC93 select SYSTEM_DATA_VERIFICATION94 help95 Enable authentication support for UBIFS. This feature offers protection96 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 as98 sha256, these are not selected automatically since there are many99 different options.100 101endif # UBIFS_FS102