blob: 2dd1bbca241c78196e629a40ccff20f2ff41cf98 [file] [log] [blame]
Jaegeuk Kima14d53932012-11-02 17:25:27 +09001config F2FS_FS
Jaegeuk Kimd7196c52015-03-03 17:06:55 -08002 tristate "F2FS filesystem support"
Jaegeuk Kim573ea5f2012-11-30 17:32:08 +09003 depends on BLOCK
YueHaibinge146fd52019-08-08 10:02:53 +08004 select NLS
Keith Mok43b65732016-03-02 12:04:24 -08005 select CRYPTO
6 select CRYPTO_CRC32
Chandan Rajendraad8ceb02018-12-12 15:20:12 +05307 select F2FS_FS_XATTR if FS_ENCRYPTION
Herbert Xub504c7c2019-12-27 10:47:00 +08008 select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
Jaegeuk Kima14d53932012-11-02 17:25:27 +09009 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
22config F2FS_STAT_FS
23 bool "F2FS Status Information"
Hridya Valsarajuc7288902020-01-22 10:51:16 -080024 depends on F2FS_FS
Jaegeuk Kima14d53932012-11-02 17:25:27 +090025 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:
arter97e1c42042014-08-06 23:22:50 +090031 - major filesystem information managed by f2fs currently
Jaegeuk Kima14d53932012-11-02 17:25:27 +090032 - average SIT information about whole segments
33 - current memory footprint consumed by f2fs.
34
35config 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 Borowski91581e42017-12-20 14:58:52 +010041 the kernel or by users (see the attr(5) manual page for details).
Jaegeuk Kima14d53932012-11-02 17:25:27 +090042
43 If unsure, say N.
44
45config 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 Lee217940d2015-08-18 22:42:15 +090052 groups beyond the owner/group/world scheme.
Jaegeuk Kima14d53932012-11-02 17:25:27 +090053
Jaegeuk Kima14d53932012-11-02 17:25:27 +090054 If you don't know what Access Control Lists are, say N
Jaegeuk Kim8ae8f162013-06-03 19:46:19 +090055
56config 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
Lockywolfdde1e082019-08-25 17:28:38 +080064 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 Kim8ae8f162013-06-03 19:46:19 +090067
68 If you are not using a security module, say N.
Jaegeuk Kim3b218e32013-10-29 15:43:01 +090069
70config F2FS_CHECK_FS
71 bool "F2FS consistency checking feature"
72 depends on F2FS_FS
73 help
arter97e1c42042014-08-06 23:22:50 +090074 Enables BUG_ONs which check the filesystem consistency in runtime.
Jaegeuk Kim3b218e32013-10-29 15:43:01 +090075
76 If you want to improve the performance, say N.
Jaegeuk Kim63f92dd2014-12-17 19:45:05 -080077
Jaegeuk Kimd33793f2015-04-10 16:28:26 -070078config F2FS_FS_ENCRYPTION
79 bool "F2FS Encryption"
80 depends on F2FS_FS
Jaegeuk Kim0b81d072015-05-15 16:26:10 -070081 select FS_ENCRYPTION
Jaegeuk Kimd33793f2015-04-10 16:28:26 -070082 help
Chandan Rajendraad8ceb02018-12-12 15:20:12 +053083 This kconfig symbol is deprecated; now it just selects
84 FS_ENCRYPTION. Use CONFIG_FS_ENCRYPTION=y in new config
85 files.
Jaegeuk Kimd33793f2015-04-10 16:28:26 -070086
Jaegeuk Kim63f92dd2014-12-17 19:45:05 -080087config 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 Kim73faec42016-04-29 15:34:32 -070096
97config 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.
Chao Yuf1fb1332019-11-01 18:07:14 +0800104
105config F2FS_FS_COMPRESSION
106 bool "F2FS compression feature"
107 depends on F2FS_FS
108 help
109 Enable filesystem-level compression on f2fs regular files,
110 multiple back-end compression algorithms are supported.
111
112config F2FS_FS_LZO
113 bool "LZO compression support"
114 depends on F2FS_FS_COMPRESSION
115 select LZO_COMPRESS
116 select LZO_DECOMPRESS
117 default y
118 help
119 Support LZO compress algorithm, if unsure, say Y.
120
121config F2FS_FS_LZ4
122 bool "LZ4 compression support"
123 depends on F2FS_FS_COMPRESSION
124 select LZ4_COMPRESS
125 select LZ4_DECOMPRESS
126 default y
127 help
128 Support LZ4 compress algorithm, if unsure, say Y.