xref: /openbmc/linux/fs/erofs/Kconfig (revision 2bdd5238)
1# SPDX-License-Identifier: GPL-2.0-only
2
3config EROFS_FS
4	tristate "EROFS filesystem support"
5	depends on BLOCK
6	select FS_IOMAP
7	select LIBCRC32C
8	help
9	  EROFS (Enhanced Read-Only File System) is a lightweight
10	  read-only file system with modern designs (eg. page-sized
11	  blocks, inline xattrs/data, etc.) for scenarios which need
12	  high-performance read-only requirements, e.g. Android OS
13	  for mobile phones and LIVECDs.
14
15	  It also provides fixed-sized output compression support,
16	  which improves storage density, keeps relatively higher
17	  compression ratios, which is more useful to achieve high
18	  performance for embedded devices with limited memory.
19
20	  If unsure, say N.
21
22config EROFS_FS_DEBUG
23	bool "EROFS debugging feature"
24	depends on EROFS_FS
25	help
26	  Print debugging messages and enable more BUG_ONs which check
27	  filesystem consistency and find potential issues aggressively,
28	  which can be used for Android eng build, for example.
29
30	  For daily use, say N.
31
32config EROFS_FS_XATTR
33	bool "EROFS extended attributes"
34	depends on EROFS_FS
35	default y
36	help
37	  Extended attributes are name:value pairs associated with inodes by
38	  the kernel or by users (see the attr(5) manual page, or visit
39	  <http://acl.bestbits.at/> for details).
40
41	  If unsure, say N.
42
43config EROFS_FS_POSIX_ACL
44	bool "EROFS Access Control Lists"
45	depends on EROFS_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	  To learn more about Access Control Lists, visit the POSIX ACLs for
53	  Linux website <http://acl.bestbits.at/>.
54
55	  If you don't know what Access Control Lists are, say N.
56
57config EROFS_FS_SECURITY
58	bool "EROFS Security Labels"
59	depends on EROFS_FS_XATTR
60	default y
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 erofs 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.
69
70config EROFS_FS_ZIP
71	bool "EROFS Data Compression Support"
72	depends on EROFS_FS
73	select LZ4_DECOMPRESS
74	default y
75	help
76	  Enable fixed-sized output compression for EROFS.
77
78	  If you don't want to enable compression feature, say N.
79