Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 2 | config UBIFS_FS |
| 3 | tristate "UBIFS file system support" |
| 4 | select CRC16 |
| 5 | select CRC32 |
| 6 | select CRYPTO if UBIFS_FS_ADVANCED_COMPR |
| 7 | select CRYPTO if UBIFS_FS_LZO |
| 8 | select CRYPTO if UBIFS_FS_ZLIB |
Michele Dionisio | eeabb98 | 2019-05-15 23:02:02 +0200 | [diff] [blame] | 9 | select CRYPTO if UBIFS_FS_ZSTD |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 10 | select CRYPTO_LZO if UBIFS_FS_LZO |
| 11 | select CRYPTO_DEFLATE if UBIFS_FS_ZLIB |
Michele Dionisio | eeabb98 | 2019-05-15 23:02:02 +0200 | [diff] [blame] | 12 | select CRYPTO_ZSTD if UBIFS_FS_ZSTD |
Sascha Hauer | 49525e5 | 2018-09-07 14:36:32 +0200 | [diff] [blame] | 13 | select CRYPTO_HASH_INFO |
Chandan Rajendra | 643fa96 | 2018-12-12 15:20:12 +0530 | [diff] [blame] | 14 | select UBIFS_FS_XATTR if FS_ENCRYPTION |
Herbert Xu | ede7a09 | 2019-12-27 10:47:00 +0800 | [diff] [blame] | 15 | select FS_ENCRYPTION_ALGS if FS_ENCRYPTION |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 16 | depends on MTD_UBI |
| 17 | help |
| 18 | UBIFS is a file system for flash devices which works on top of UBI. |
| 19 | |
Geert Uytterhoeven | aa3d31e | 2018-11-05 09:25:40 +0100 | [diff] [blame] | 20 | if UBIFS_FS |
| 21 | |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 22 | config UBIFS_FS_ADVANCED_COMPR |
| 23 | bool "Advanced compression options" |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 24 | help |
| 25 | This option allows to explicitly choose which compressions, if any, |
Matt LaPlante | 692105b | 2009-01-26 11:12:25 +0100 | [diff] [blame] | 26 | are enabled in UBIFS. Removing compressors means inability to read |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 27 | existing file systems. |
| 28 | |
| 29 | If unsure, say 'N'. |
| 30 | |
| 31 | config UBIFS_FS_LZO |
| 32 | bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 33 | default y |
| 34 | help |
Matt LaPlante | 692105b | 2009-01-26 11:12:25 +0100 | [diff] [blame] | 35 | LZO compressor is generally faster than zlib but compresses worse. |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 36 | Say 'Y' if unsure. |
| 37 | |
| 38 | config UBIFS_FS_ZLIB |
| 39 | bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 40 | default y |
| 41 | help |
Frederik Schwarzer | 025dfda | 2008-10-16 19:02:37 +0200 | [diff] [blame] | 42 | Zlib compresses better than LZO but it is slower. Say 'Y' if unsure. |
Dongsheng Yang | 8c1c5f2 | 2015-11-07 12:46:11 +0800 | [diff] [blame] | 43 | |
Michele Dionisio | eeabb98 | 2019-05-15 23:02:02 +0200 | [diff] [blame] | 44 | config UBIFS_FS_ZSTD |
| 45 | bool "ZSTD compression support" if UBIFS_FS_ADVANCED_COMPR |
| 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 | |
Dongsheng Yang | 8c1c5f2 | 2015-11-07 12:46:11 +0800 | [diff] [blame] | 52 | config UBIFS_ATIME_SUPPORT |
Geert Uytterhoeven | aa3d31e | 2018-11-05 09:25:40 +0100 | [diff] [blame] | 53 | bool "Access time support" |
Dongsheng Yang | 8c1c5f2 | 2015-11-07 12:46:11 +0800 | [diff] [blame] | 54 | default n |
| 55 | help |
| 56 | Originally UBIFS did not support atime, because it looked like a bad idea due |
| 57 | increased flash wear. This option adds atime support and it is disabled by default |
| 58 | 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 atime |
| 60 | 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' |
Richard Weinberger | d475a50 | 2016-10-20 16:47:56 +0200 | [diff] [blame] | 65 | |
Stefan Agner | 7e5471c | 2018-07-31 15:13:20 +0200 | [diff] [blame] | 66 | config UBIFS_FS_XATTR |
| 67 | bool "UBIFS XATTR support" |
Stefan Agner | 7e5471c | 2018-07-31 15:13:20 +0200 | [diff] [blame] | 68 | default y |
| 69 | help |
| 70 | Saying Y here includes support for extended attributes (xattrs). |
| 71 | Xattrs are name:value pairs associated with inodes by |
| 72 | the kernel or by users (see the attr(5) manual page). |
| 73 | |
| 74 | If unsure, say Y. |
| 75 | |
Hyunchul Lee | 8326c1e | 2017-03-03 16:44:03 +0900 | [diff] [blame] | 76 | config UBIFS_FS_SECURITY |
| 77 | bool "UBIFS Security Labels" |
Geert Uytterhoeven | aa3d31e | 2018-11-05 09:25:40 +0100 | [diff] [blame] | 78 | depends on UBIFS_FS_XATTR |
Hyunchul Lee | 8326c1e | 2017-03-03 16:44:03 +0900 | [diff] [blame] | 79 | default y |
| 80 | help |
| 81 | Security labels provide an access control facility to support Linux |
| 82 | Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO |
| 83 | Linux. This option enables an extended attribute handler for file |
| 84 | security labels in the ubifs filesystem, so that it requires enabling |
| 85 | the extended attribute support in advance. |
| 86 | |
| 87 | If you are not using a security module, say N. |
Sascha Hauer | d8a2277 | 2018-09-07 14:36:45 +0200 | [diff] [blame] | 88 | |
| 89 | config UBIFS_FS_AUTHENTICATION |
| 90 | bool "UBIFS authentication support" |
Sascha Hauer | 817aa09 | 2019-05-14 10:33:22 +0200 | [diff] [blame] | 91 | select KEYS |
Sascha Hauer | d8a2277 | 2018-09-07 14:36:45 +0200 | [diff] [blame] | 92 | select CRYPTO_HMAC |
Sascha Hauer | 817aa09 | 2019-05-14 10:33:22 +0200 | [diff] [blame] | 93 | select SYSTEM_DATA_VERIFICATION |
Sascha Hauer | d8a2277 | 2018-09-07 14:36:45 +0200 | [diff] [blame] | 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. |
Geert Uytterhoeven | aa3d31e | 2018-11-05 09:25:40 +0100 | [diff] [blame] | 100 | |
| 101 | endif # UBIFS_FS |