xref: /openbmc/linux/fs/f2fs/Kconfig (revision 023e4163)
1config F2FS_FS
2	tristate "F2FS filesystem support"
3	depends on BLOCK
4	select CRYPTO
5	select CRYPTO_CRC32
6	select F2FS_FS_XATTR if FS_ENCRYPTION
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
20config 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:
29	    - major filesystem information managed by f2fs currently
30	    - average SIT information about whole segments
31	    - current memory footprint consumed by f2fs.
32
33config 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 for details).
40
41	  If unsure, say N.
42
43config F2FS_FS_POSIX_ACL
44	bool "F2FS Access Control Lists"
45	depends on F2FS_FS_XATTR
46	select FS_POSIX_ACL
47	default y
48	help
49	  Posix Access Control Lists (ACLs) support permissions for users and
50	  groups beyond the owner/group/world scheme.
51
52	  If you don't know what Access Control Lists are, say N
53
54config F2FS_FS_SECURITY
55	bool "F2FS Security Labels"
56	depends on F2FS_FS_XATTR
57	help
58	  Security labels provide an access control facility to support Linux
59	  Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
60	  Linux. This option enables an extended attribute handler for file
61	  security labels in the f2fs filesystem, so that it requires enabling
62	  the extended attribute support in advance.
63
64	  If you are not using a security module, say N.
65
66config F2FS_CHECK_FS
67	bool "F2FS consistency checking feature"
68	depends on F2FS_FS
69	help
70	  Enables BUG_ONs which check the filesystem consistency in runtime.
71
72	  If you want to improve the performance, say N.
73
74config F2FS_IO_TRACE
75	bool "F2FS IO tracer"
76	depends on F2FS_FS
77	depends on FUNCTION_TRACER
78	help
79	  F2FS IO trace is based on a function trace, which gathers process
80	  information and block IO patterns in the filesystem level.
81
82	  If unsure, say N.
83
84config F2FS_FAULT_INJECTION
85	bool "F2FS fault injection facility"
86	depends on F2FS_FS
87	help
88	  Test F2FS to inject faults such as ENOMEM, ENOSPC, and so on.
89
90	  If unsure, say N.
91