Commit | Line | Data |
---|---|---|
29b24f6c | 1 | # SPDX-License-Identifier: GPL-2.0-only |
fd68c6a2 GX |
2 | |
3 | config EROFS_FS | |
4 | tristate "EROFS filesystem support" | |
aca19723 | 5 | depends on BLOCK |
fd68c6a2 | 6 | help |
0b800f3d | 7 | EROFS (Enhanced Read-Only File System) is a lightweight |
fd68c6a2 GX |
8 | read-only file system with modern designs (eg. page-sized |
9 | blocks, inline xattrs/data, etc.) for scenarios which need | |
0b800f3d GX |
10 | high-performance read-only requirements, e.g. Android OS |
11 | for mobile phones and LIVECDs. | |
fd68c6a2 | 12 | |
0b800f3d GX |
13 | It also provides fixed-sized output compression support, |
14 | which improves storage density, keeps relatively higher | |
15 | compression ratios, which is more useful to achieve high | |
16 | performance for embedded devices with limited memory. | |
fd68c6a2 GX |
17 | |
18 | If unsure, say N. | |
19 | ||
20 | config EROFS_FS_DEBUG | |
21 | bool "EROFS debugging feature" | |
22 | depends on EROFS_FS | |
23 | help | |
0b800f3d GX |
24 | Print debugging messages and enable more BUG_ONs which check |
25 | filesystem consistency and find potential issues aggressively, | |
26 | which can be used for Android eng build, for example. | |
fd68c6a2 GX |
27 | |
28 | For daily use, say N. | |
29 | ||
b17500a0 GX |
30 | config EROFS_FS_XATTR |
31 | bool "EROFS extended attributes" | |
32 | depends on EROFS_FS | |
33 | default y | |
34 | help | |
35 | Extended attributes are name:value pairs associated with inodes by | |
36 | the kernel or by users (see the attr(5) manual page, or visit | |
37 | <http://acl.bestbits.at/> for details). | |
38 | ||
39 | If unsure, say N. | |
40 | ||
41 | config EROFS_FS_POSIX_ACL | |
42 | bool "EROFS Access Control Lists" | |
43 | depends on EROFS_FS_XATTR | |
44 | select FS_POSIX_ACL | |
45 | default y | |
46 | help | |
47 | Posix Access Control Lists (ACLs) support permissions for users and | |
48 | groups beyond the owner/group/world scheme. | |
49 | ||
50 | To learn more about Access Control Lists, visit the POSIX ACLs for | |
51 | Linux website <http://acl.bestbits.at/>. | |
52 | ||
53 | If you don't know what Access Control Lists are, say N. | |
54 | ||
55 | config EROFS_FS_SECURITY | |
56 | bool "EROFS Security Labels" | |
57 | depends on EROFS_FS_XATTR | |
0b800f3d | 58 | default y |
b17500a0 GX |
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 erofs filesystem, so that it requires enabling | |
64 | the extended attribute support in advance. | |
65 | ||
66 | If you are not using a security module, say N. | |
67 | ||
02827e17 | 68 | config EROFS_FS_ZIP |
0b800f3d | 69 | bool "EROFS Data Compression Support" |
02827e17 | 70 | depends on EROFS_FS |
7962e63a | 71 | select LZ4_DECOMPRESS |
0b800f3d | 72 | default y |
02827e17 | 73 | help |
0b800f3d | 74 | Enable fixed-sized output compression for EROFS. |
02827e17 | 75 | |
0b800f3d | 76 | If you don't want to enable compression feature, say N. |
02827e17 | 77 | |
0d40d6e3 GX |
78 | config EROFS_FS_CLUSTER_PAGE_LIMIT |
79 | int "EROFS Cluster Pages Hard Limit" | |
80 | depends on EROFS_FS_ZIP | |
81 | range 1 256 | |
82 | default "1" | |
83 | help | |
0b800f3d GX |
84 | Indicates maximum # of pages of a compressed |
85 | physical cluster. | |
0d40d6e3 | 86 | |
0b800f3d GX |
87 | For example, if files in a image were compressed |
88 | into 8k-unit, hard limit should not be configured | |
89 | less than 2. Otherwise, the image will be refused | |
90 | to mount on this kernel. | |
0d40d6e3 | 91 |