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 |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 15 | depends on MTD_UBI |
| 16 | help |
| 17 | UBIFS is a file system for flash devices which works on top of UBI. |
| 18 | |
Geert Uytterhoeven | aa3d31e | 2018-11-05 09:25:40 +0100 | [diff] [blame] | 19 | if UBIFS_FS |
| 20 | |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 21 | config UBIFS_FS_ADVANCED_COMPR |
| 22 | bool "Advanced compression options" |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 23 | help |
| 24 | This option allows to explicitly choose which compressions, if any, |
Matt LaPlante | 692105b | 2009-01-26 11:12:25 +0100 | [diff] [blame] | 25 | are enabled in UBIFS. Removing compressors means inability to read |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 26 | existing file systems. |
| 27 | |
| 28 | If unsure, say 'N'. |
| 29 | |
| 30 | config UBIFS_FS_LZO |
| 31 | bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 32 | default y |
| 33 | help |
Matt LaPlante | 692105b | 2009-01-26 11:12:25 +0100 | [diff] [blame] | 34 | LZO compressor is generally faster than zlib but compresses worse. |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 35 | Say 'Y' if unsure. |
| 36 | |
| 37 | config UBIFS_FS_ZLIB |
| 38 | bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR |
Artem Bityutskiy | 0d7eff8 | 2008-07-14 19:08:38 +0300 | [diff] [blame] | 39 | default y |
| 40 | help |
Frederik Schwarzer | 025dfda | 2008-10-16 19:02:37 +0200 | [diff] [blame] | 41 | 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] | 42 | |
Michele Dionisio | eeabb98 | 2019-05-15 23:02:02 +0200 | [diff] [blame] | 43 | config UBIFS_FS_ZSTD |
| 44 | bool "ZSTD compression support" if UBIFS_FS_ADVANCED_COMPR |
| 45 | depends on UBIFS_FS |
| 46 | default y |
| 47 | help |
| 48 | ZSTD compresses is a big win in speed over Zlib and |
| 49 | in compression ratio over LZO. Say 'Y' if unsure. |
| 50 | |
Dongsheng Yang | 8c1c5f2 | 2015-11-07 12:46:11 +0800 | [diff] [blame] | 51 | config UBIFS_ATIME_SUPPORT |
Geert Uytterhoeven | aa3d31e | 2018-11-05 09:25:40 +0100 | [diff] [blame] | 52 | bool "Access time support" |
Dongsheng Yang | 8c1c5f2 | 2015-11-07 12:46:11 +0800 | [diff] [blame] | 53 | default n |
| 54 | help |
| 55 | Originally UBIFS did not support atime, because it looked like a bad idea due |
| 56 | increased flash wear. This option adds atime support and it is disabled by default |
| 57 | to preserve the old behavior. If you enable this option, UBIFS starts updating atime, |
| 58 | which means that file-system read operations will cause writes (inode atime |
| 59 | updates). This may affect file-system performance and increase flash device wear, |
| 60 | so be careful. How often atime is updated depends on the selected strategy: |
| 61 | strictatime is the "heavy", relatime is "lighter", etc. |
| 62 | |
| 63 | If unsure, say 'N' |
Richard Weinberger | d475a50 | 2016-10-20 16:47:56 +0200 | [diff] [blame] | 64 | |
Stefan Agner | 7e5471c | 2018-07-31 15:13:20 +0200 | [diff] [blame] | 65 | config UBIFS_FS_XATTR |
| 66 | bool "UBIFS XATTR support" |
Stefan Agner | 7e5471c | 2018-07-31 15:13:20 +0200 | [diff] [blame] | 67 | default y |
| 68 | help |
| 69 | Saying Y here includes support for extended attributes (xattrs). |
| 70 | Xattrs are name:value pairs associated with inodes by |
| 71 | the kernel or by users (see the attr(5) manual page). |
| 72 | |
| 73 | If unsure, say Y. |
| 74 | |
Hyunchul Lee | 8326c1e | 2017-03-03 16:44:03 +0900 | [diff] [blame] | 75 | config UBIFS_FS_SECURITY |
| 76 | bool "UBIFS Security Labels" |
Geert Uytterhoeven | aa3d31e | 2018-11-05 09:25:40 +0100 | [diff] [blame] | 77 | depends on UBIFS_FS_XATTR |
Hyunchul Lee | 8326c1e | 2017-03-03 16:44:03 +0900 | [diff] [blame] | 78 | default y |
| 79 | help |
| 80 | Security labels provide an access control facility to support Linux |
| 81 | Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO |
| 82 | Linux. This option enables an extended attribute handler for file |
| 83 | security labels in the ubifs filesystem, so that it requires enabling |
| 84 | the extended attribute support in advance. |
| 85 | |
| 86 | If you are not using a security module, say N. |
Sascha Hauer | d8a2277 | 2018-09-07 14:36:45 +0200 | [diff] [blame] | 87 | |
| 88 | config UBIFS_FS_AUTHENTICATION |
| 89 | bool "UBIFS authentication support" |
Sascha Hauer | 817aa09 | 2019-05-14 10:33:22 +0200 | [diff] [blame] | 90 | select KEYS |
Sascha Hauer | d8a2277 | 2018-09-07 14:36:45 +0200 | [diff] [blame] | 91 | select CRYPTO_HMAC |
Sascha Hauer | 817aa09 | 2019-05-14 10:33:22 +0200 | [diff] [blame] | 92 | select SYSTEM_DATA_VERIFICATION |
Sascha Hauer | d8a2277 | 2018-09-07 14:36:45 +0200 | [diff] [blame] | 93 | help |
| 94 | Enable authentication support for UBIFS. This feature offers protection |
| 95 | against offline changes for both data and metadata of the filesystem. |
| 96 | If you say yes here you should also select a hashing algorithm such as |
| 97 | sha256, these are not selected automatically since there are many |
| 98 | different options. |
Geert Uytterhoeven | aa3d31e | 2018-11-05 09:25:40 +0100 | [diff] [blame] | 99 | |
| 100 | endif # UBIFS_FS |