Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Jaegeuk Kim | a14d5393 | 2012-11-02 17:25:27 +0900 | [diff] [blame] | 2 | config F2FS_FS |
Jaegeuk Kim | d7196c5 | 2015-03-03 17:06:55 -0800 | [diff] [blame] | 3 | tristate "F2FS filesystem support" |
Jaegeuk Kim | 573ea5f | 2012-11-30 17:32:08 +0900 | [diff] [blame] | 4 | depends on BLOCK |
YueHaibing | aabc172 | 2019-08-08 10:02:53 +0800 | [diff] [blame] | 5 | select NLS |
Keith Mok | 43b6573 | 2016-03-02 12:04:24 -0800 | [diff] [blame] | 6 | select CRYPTO |
| 7 | select CRYPTO_CRC32 |
Chandan Rajendra | 643fa96 | 2018-12-12 15:20:12 +0530 | [diff] [blame] | 8 | select F2FS_FS_XATTR if FS_ENCRYPTION |
Jaegeuk Kim | a14d5393 | 2012-11-02 17:25:27 +0900 | [diff] [blame] | 9 | help |
| 10 | F2FS is based on Log-structured File System (LFS), which supports |
| 11 | versatile "flash-friendly" features. The design has been focused on |
| 12 | addressing the fundamental issues in LFS, which are snowball effect |
| 13 | of wandering tree and high cleaning overhead. |
| 14 | |
| 15 | Since flash-based storages show different characteristics according to |
| 16 | the internal geometry or flash memory management schemes aka FTL, F2FS |
| 17 | and tools support various parameters not only for configuring on-disk |
| 18 | layout, but also for selecting allocation and cleaning algorithms. |
| 19 | |
| 20 | If unsure, say N. |
| 21 | |
| 22 | config F2FS_STAT_FS |
| 23 | bool "F2FS Status Information" |
| 24 | depends on F2FS_FS && DEBUG_FS |
| 25 | default y |
| 26 | help |
| 27 | /sys/kernel/debug/f2fs/ contains information about all the partitions |
| 28 | mounted as f2fs. Each file shows the whole f2fs information. |
| 29 | |
| 30 | /sys/kernel/debug/f2fs/status includes: |
arter97 | e1c4204 | 2014-08-06 23:22:50 +0900 | [diff] [blame] | 31 | - major filesystem information managed by f2fs currently |
Jaegeuk Kim | a14d5393 | 2012-11-02 17:25:27 +0900 | [diff] [blame] | 32 | - average SIT information about whole segments |
| 33 | - current memory footprint consumed by f2fs. |
| 34 | |
| 35 | config F2FS_FS_XATTR |
| 36 | bool "F2FS extended attributes" |
| 37 | depends on F2FS_FS |
| 38 | default y |
| 39 | help |
| 40 | Extended attributes are name:value pairs associated with inodes by |
Adam Borowski | 91581e4 | 2017-12-20 14:58:52 +0100 | [diff] [blame] | 41 | the kernel or by users (see the attr(5) manual page for details). |
Jaegeuk Kim | a14d5393 | 2012-11-02 17:25:27 +0900 | [diff] [blame] | 42 | |
| 43 | If unsure, say N. |
| 44 | |
| 45 | config F2FS_FS_POSIX_ACL |
| 46 | bool "F2FS Access Control Lists" |
| 47 | depends on F2FS_FS_XATTR |
| 48 | select FS_POSIX_ACL |
| 49 | default y |
| 50 | help |
| 51 | Posix Access Control Lists (ACLs) support permissions for users and |
Junesung Lee | 217940d | 2015-08-18 22:42:15 +0900 | [diff] [blame] | 52 | groups beyond the owner/group/world scheme. |
Jaegeuk Kim | a14d5393 | 2012-11-02 17:25:27 +0900 | [diff] [blame] | 53 | |
Jaegeuk Kim | a14d5393 | 2012-11-02 17:25:27 +0900 | [diff] [blame] | 54 | If you don't know what Access Control Lists are, say N |
Jaegeuk Kim | 8ae8f16 | 2013-06-03 19:46:19 +0900 | [diff] [blame] | 55 | |
| 56 | config F2FS_FS_SECURITY |
| 57 | bool "F2FS Security Labels" |
| 58 | depends on F2FS_FS_XATTR |
| 59 | help |
| 60 | Security labels provide an access control facility to support Linux |
| 61 | Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO |
| 62 | Linux. This option enables an extended attribute handler for file |
| 63 | security labels in the f2fs filesystem, so that it requires enabling |
Lockywolf | bd7253b | 2019-08-25 17:28:38 +0800 | [diff] [blame^] | 64 | the extended attribute support in advance. In particular you need this |
| 65 | option if you use the setcap command to assign initial process capabi- |
| 66 | lities to executables (the security.* extended attributes). |
Jaegeuk Kim | 8ae8f16 | 2013-06-03 19:46:19 +0900 | [diff] [blame] | 67 | |
| 68 | If you are not using a security module, say N. |
Jaegeuk Kim | 3b218e3 | 2013-10-29 15:43:01 +0900 | [diff] [blame] | 69 | |
| 70 | config F2FS_CHECK_FS |
| 71 | bool "F2FS consistency checking feature" |
| 72 | depends on F2FS_FS |
| 73 | help |
arter97 | e1c4204 | 2014-08-06 23:22:50 +0900 | [diff] [blame] | 74 | Enables BUG_ONs which check the filesystem consistency in runtime. |
Jaegeuk Kim | 3b218e3 | 2013-10-29 15:43:01 +0900 | [diff] [blame] | 75 | |
| 76 | If you want to improve the performance, say N. |
Jaegeuk Kim | 63f92dd | 2014-12-17 19:45:05 -0800 | [diff] [blame] | 77 | |
| 78 | config F2FS_IO_TRACE |
| 79 | bool "F2FS IO tracer" |
| 80 | depends on F2FS_FS |
| 81 | depends on FUNCTION_TRACER |
| 82 | help |
| 83 | F2FS IO trace is based on a function trace, which gathers process |
| 84 | information and block IO patterns in the filesystem level. |
| 85 | |
| 86 | If unsure, say N. |
Jaegeuk Kim | 73faec4 | 2016-04-29 15:34:32 -0700 | [diff] [blame] | 87 | |
| 88 | config F2FS_FAULT_INJECTION |
| 89 | bool "F2FS fault injection facility" |
| 90 | depends on F2FS_FS |
| 91 | help |
| 92 | Test F2FS to inject faults such as ENOMEM, ENOSPC, and so on. |
| 93 | |
| 94 | If unsure, say N. |