Jaegeuk Kim | a14d5393 | 2012-11-02 17:25:27 +0900 | [diff] [blame] | 1 | config F2FS_FS |
Jaegeuk Kim | d7196c5 | 2015-03-03 17:06:55 -0800 | [diff] [blame] | 2 | tristate "F2FS filesystem support" |
Jaegeuk Kim | 573ea5f | 2012-11-30 17:32:08 +0900 | [diff] [blame] | 3 | depends on BLOCK |
Keith Mok | 43b6573 | 2016-03-02 12:04:24 -0800 | [diff] [blame] | 4 | select CRYPTO |
| 5 | select CRYPTO_CRC32 |
Chandan Rajendra | 3ce5fa3 | 2018-12-12 15:20:12 +0530 | [diff] [blame] | 6 | select F2FS_FS_XATTR if FS_ENCRYPTION |
Jaegeuk Kim | a14d5393 | 2012-11-02 17:25:27 +0900 | [diff] [blame] | 7 | help |
| 8 | F2FS is based on Log-structured File System (LFS), which supports |
| 9 | versatile "flash-friendly" features. The design has been focused on |
| 10 | addressing the fundamental issues in LFS, which are snowball effect |
| 11 | of wandering tree and high cleaning overhead. |
| 12 | |
| 13 | Since flash-based storages show different characteristics according to |
| 14 | the internal geometry or flash memory management schemes aka FTL, F2FS |
| 15 | and tools support various parameters not only for configuring on-disk |
| 16 | layout, but also for selecting allocation and cleaning algorithms. |
| 17 | |
| 18 | If unsure, say N. |
| 19 | |
| 20 | config F2FS_STAT_FS |
| 21 | bool "F2FS Status Information" |
| 22 | depends on F2FS_FS && DEBUG_FS |
| 23 | default y |
| 24 | help |
| 25 | /sys/kernel/debug/f2fs/ contains information about all the partitions |
| 26 | mounted as f2fs. Each file shows the whole f2fs information. |
| 27 | |
| 28 | /sys/kernel/debug/f2fs/status includes: |
arter97 | e1c4204 | 2014-08-06 23:22:50 +0900 | [diff] [blame] | 29 | - major filesystem information managed by f2fs currently |
Jaegeuk Kim | a14d5393 | 2012-11-02 17:25:27 +0900 | [diff] [blame] | 30 | - average SIT information about whole segments |
| 31 | - current memory footprint consumed by f2fs. |
| 32 | |
| 33 | config F2FS_FS_XATTR |
| 34 | bool "F2FS extended attributes" |
| 35 | depends on F2FS_FS |
| 36 | default y |
| 37 | help |
| 38 | Extended attributes are name:value pairs associated with inodes by |
| 39 | the kernel or by users (see the attr(5) manual page, or visit |
| 40 | <http://acl.bestbits.at/> for details). |
| 41 | |
| 42 | If unsure, say N. |
| 43 | |
| 44 | config F2FS_FS_POSIX_ACL |
| 45 | bool "F2FS Access Control Lists" |
| 46 | depends on F2FS_FS_XATTR |
| 47 | select FS_POSIX_ACL |
| 48 | default y |
| 49 | help |
| 50 | Posix Access Control Lists (ACLs) support permissions for users and |
Junesung Lee | 217940d | 2015-08-18 22:42:15 +0900 | [diff] [blame] | 51 | groups beyond the owner/group/world scheme. |
Jaegeuk Kim | a14d5393 | 2012-11-02 17:25:27 +0900 | [diff] [blame] | 52 | |
| 53 | To learn more about Access Control Lists, visit the POSIX ACLs for |
| 54 | Linux website <http://acl.bestbits.at/>. |
| 55 | |
| 56 | If you don't know what Access Control Lists are, say N |
Jaegeuk Kim | 8ae8f16 | 2013-06-03 19:46:19 +0900 | [diff] [blame] | 57 | |
| 58 | config F2FS_FS_SECURITY |
| 59 | bool "F2FS Security Labels" |
| 60 | depends on F2FS_FS_XATTR |
| 61 | help |
| 62 | Security labels provide an access control facility to support Linux |
| 63 | Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO |
| 64 | Linux. This option enables an extended attribute handler for file |
| 65 | security labels in the f2fs filesystem, so that it requires enabling |
| 66 | the extended attribute support in advance. |
| 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 | |
Jaegeuk Kim | d33793f | 2015-04-10 16:28:26 -0700 | [diff] [blame] | 78 | config F2FS_FS_ENCRYPTION |
| 79 | bool "F2FS Encryption" |
| 80 | depends on F2FS_FS |
Jaegeuk Kim | 0b81d07 | 2015-05-15 16:26:10 -0700 | [diff] [blame] | 81 | select FS_ENCRYPTION |
Jaegeuk Kim | d33793f | 2015-04-10 16:28:26 -0700 | [diff] [blame] | 82 | help |
Chandan Rajendra | 3ce5fa3 | 2018-12-12 15:20:12 +0530 | [diff] [blame] | 83 | This kconfig symbol is deprecated; now it just selects |
| 84 | FS_ENCRYPTION. Use CONFIG_FS_ENCRYPTION=y in new config |
| 85 | files. |
Jaegeuk Kim | d33793f | 2015-04-10 16:28:26 -0700 | [diff] [blame] | 86 | |
Jaegeuk Kim | 63f92dd | 2014-12-17 19:45:05 -0800 | [diff] [blame] | 87 | config F2FS_IO_TRACE |
| 88 | bool "F2FS IO tracer" |
| 89 | depends on F2FS_FS |
| 90 | depends on FUNCTION_TRACER |
| 91 | help |
| 92 | F2FS IO trace is based on a function trace, which gathers process |
| 93 | information and block IO patterns in the filesystem level. |
| 94 | |
| 95 | If unsure, say N. |
Jaegeuk Kim | 73faec4 | 2016-04-29 15:34:32 -0700 | [diff] [blame] | 96 | |
| 97 | config F2FS_FAULT_INJECTION |
| 98 | bool "F2FS fault injection facility" |
| 99 | depends on F2FS_FS |
| 100 | help |
| 101 | Test F2FS to inject faults such as ENOMEM, ENOSPC, and so on. |
| 102 | |
| 103 | If unsure, say N. |