| .. | .. |
|---|
| 1 | +# SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | config UBIFS_FS |
|---|
| 2 | 3 | tristate "UBIFS file system support" |
|---|
| 3 | 4 | select CRC16 |
|---|
| .. | .. |
|---|
| 5 | 6 | select CRYPTO if UBIFS_FS_ADVANCED_COMPR |
|---|
| 6 | 7 | select CRYPTO if UBIFS_FS_LZO |
|---|
| 7 | 8 | select CRYPTO if UBIFS_FS_ZLIB |
|---|
| 9 | + select CRYPTO if UBIFS_FS_ZSTD |
|---|
| 8 | 10 | select CRYPTO_LZO if UBIFS_FS_LZO |
|---|
| 9 | 11 | select CRYPTO_DEFLATE if UBIFS_FS_ZLIB |
|---|
| 12 | + select CRYPTO_ZSTD if UBIFS_FS_ZSTD |
|---|
| 13 | + select CRYPTO_HASH_INFO |
|---|
| 10 | 14 | select UBIFS_FS_XATTR if FS_ENCRYPTION |
|---|
| 11 | 15 | select FS_ENCRYPTION_ALGS if FS_ENCRYPTION |
|---|
| 12 | 16 | depends on MTD_UBI |
|---|
| 13 | 17 | help |
|---|
| 14 | 18 | UBIFS is a file system for flash devices which works on top of UBI. |
|---|
| 15 | 19 | |
|---|
| 20 | +if UBIFS_FS |
|---|
| 21 | + |
|---|
| 16 | 22 | config UBIFS_FS_ADVANCED_COMPR |
|---|
| 17 | 23 | bool "Advanced compression options" |
|---|
| 18 | | - depends on UBIFS_FS |
|---|
| 19 | 24 | help |
|---|
| 20 | 25 | This option allows to explicitly choose which compressions, if any, |
|---|
| 21 | 26 | are enabled in UBIFS. Removing compressors means inability to read |
|---|
| .. | .. |
|---|
| 25 | 30 | |
|---|
| 26 | 31 | config UBIFS_FS_LZO |
|---|
| 27 | 32 | bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR |
|---|
| 28 | | - depends on UBIFS_FS |
|---|
| 29 | 33 | default y |
|---|
| 30 | 34 | help |
|---|
| 31 | 35 | LZO compressor is generally faster than zlib but compresses worse. |
|---|
| .. | .. |
|---|
| 33 | 37 | |
|---|
| 34 | 38 | config UBIFS_FS_ZLIB |
|---|
| 35 | 39 | bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR |
|---|
| 36 | | - depends on UBIFS_FS |
|---|
| 37 | 40 | default y |
|---|
| 38 | 41 | help |
|---|
| 39 | 42 | Zlib compresses better than LZO but it is slower. Say 'Y' if unsure. |
|---|
| 40 | 43 | |
|---|
| 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 |
|---|
| 43 | 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 | + |
|---|
| 52 | +config UBIFS_ATIME_SUPPORT |
|---|
| 53 | + bool "Access time support" |
|---|
| 44 | 54 | default n |
|---|
| 45 | 55 | help |
|---|
| 46 | 56 | Originally UBIFS did not support atime, because it looked like a bad idea due |
|---|
| .. | .. |
|---|
| 55 | 65 | |
|---|
| 56 | 66 | config UBIFS_FS_XATTR |
|---|
| 57 | 67 | bool "UBIFS XATTR support" |
|---|
| 58 | | - depends on UBIFS_FS |
|---|
| 59 | 68 | default y |
|---|
| 60 | 69 | help |
|---|
| 61 | 70 | Saying Y here includes support for extended attributes (xattrs). |
|---|
| .. | .. |
|---|
| 66 | 75 | |
|---|
| 67 | 76 | config UBIFS_FS_SECURITY |
|---|
| 68 | 77 | bool "UBIFS Security Labels" |
|---|
| 69 | | - depends on UBIFS_FS && UBIFS_FS_XATTR |
|---|
| 78 | + depends on UBIFS_FS_XATTR |
|---|
| 70 | 79 | default y |
|---|
| 71 | 80 | help |
|---|
| 72 | 81 | Security labels provide an access control facility to support Linux |
|---|
| .. | .. |
|---|
| 76 | 85 | the extended attribute support in advance. |
|---|
| 77 | 86 | |
|---|
| 78 | 87 | 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 |
|---|