xref: /OK3568_Linux_fs/kernel/fs/erofs/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun
3*4882a593Smuzhiyunconfig EROFS_FS
4*4882a593Smuzhiyun	tristate "EROFS filesystem support"
5*4882a593Smuzhiyun	depends on BLOCK
6*4882a593Smuzhiyun	select FS_IOMAP
7*4882a593Smuzhiyun	select LIBCRC32C
8*4882a593Smuzhiyun	help
9*4882a593Smuzhiyun	  EROFS (Enhanced Read-Only File System) is a lightweight
10*4882a593Smuzhiyun	  read-only file system with modern designs (eg. page-sized
11*4882a593Smuzhiyun	  blocks, inline xattrs/data, etc.) for scenarios which need
12*4882a593Smuzhiyun	  high-performance read-only requirements, e.g. Android OS
13*4882a593Smuzhiyun	  for mobile phones and LIVECDs.
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun	  It also provides fixed-sized output compression support,
16*4882a593Smuzhiyun	  which improves storage density, keeps relatively higher
17*4882a593Smuzhiyun	  compression ratios, which is more useful to achieve high
18*4882a593Smuzhiyun	  performance for embedded devices with limited memory.
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun	  If unsure, say N.
21*4882a593Smuzhiyun
22*4882a593Smuzhiyunconfig EROFS_FS_DEBUG
23*4882a593Smuzhiyun	bool "EROFS debugging feature"
24*4882a593Smuzhiyun	depends on EROFS_FS
25*4882a593Smuzhiyun	help
26*4882a593Smuzhiyun	  Print debugging messages and enable more BUG_ONs which check
27*4882a593Smuzhiyun	  filesystem consistency and find potential issues aggressively,
28*4882a593Smuzhiyun	  which can be used for Android eng build, for example.
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun	  For daily use, say N.
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunconfig EROFS_FS_XATTR
33*4882a593Smuzhiyun	bool "EROFS extended attributes"
34*4882a593Smuzhiyun	depends on EROFS_FS
35*4882a593Smuzhiyun	default y
36*4882a593Smuzhiyun	help
37*4882a593Smuzhiyun	  Extended attributes are name:value pairs associated with inodes by
38*4882a593Smuzhiyun	  the kernel or by users (see the attr(5) manual page, or visit
39*4882a593Smuzhiyun	  <http://acl.bestbits.at/> for details).
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun	  If unsure, say N.
42*4882a593Smuzhiyun
43*4882a593Smuzhiyunconfig EROFS_FS_POSIX_ACL
44*4882a593Smuzhiyun	bool "EROFS Access Control Lists"
45*4882a593Smuzhiyun	depends on EROFS_FS_XATTR
46*4882a593Smuzhiyun	select FS_POSIX_ACL
47*4882a593Smuzhiyun	default y
48*4882a593Smuzhiyun	help
49*4882a593Smuzhiyun	  Posix Access Control Lists (ACLs) support permissions for users and
50*4882a593Smuzhiyun	  groups beyond the owner/group/world scheme.
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun	  To learn more about Access Control Lists, visit the POSIX ACLs for
53*4882a593Smuzhiyun	  Linux website <http://acl.bestbits.at/>.
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun	  If you don't know what Access Control Lists are, say N.
56*4882a593Smuzhiyun
57*4882a593Smuzhiyunconfig EROFS_FS_SECURITY
58*4882a593Smuzhiyun	bool "EROFS Security Labels"
59*4882a593Smuzhiyun	depends on EROFS_FS_XATTR
60*4882a593Smuzhiyun	default y
61*4882a593Smuzhiyun	help
62*4882a593Smuzhiyun	  Security labels provide an access control facility to support Linux
63*4882a593Smuzhiyun	  Security Models (LSMs) accepted by AppArmor, SELinux, Smack and TOMOYO
64*4882a593Smuzhiyun	  Linux. This option enables an extended attribute handler for file
65*4882a593Smuzhiyun	  security labels in the erofs filesystem, so that it requires enabling
66*4882a593Smuzhiyun	  the extended attribute support in advance.
67*4882a593Smuzhiyun
68*4882a593Smuzhiyun	  If you are not using a security module, say N.
69*4882a593Smuzhiyun
70*4882a593Smuzhiyunconfig EROFS_FS_ZIP
71*4882a593Smuzhiyun	bool "EROFS Data Compression Support"
72*4882a593Smuzhiyun	depends on EROFS_FS
73*4882a593Smuzhiyun	select LZ4_DECOMPRESS
74*4882a593Smuzhiyun	default y
75*4882a593Smuzhiyun	help
76*4882a593Smuzhiyun	  Enable fixed-sized output compression for EROFS.
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun	  If you don't want to enable compression feature, say N.
79*4882a593Smuzhiyun
80