blob: 5d8c9edcb7a48d34ae7bbd272397bf0d7d7494c3 [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001#
2# File system configuration
3#
4
5menu "File systems"
6
7# Use unaligned word dcache accesses
8config DCACHE_WORD_ACCESS
9 bool
10
11if BLOCK
12
13config FS_IOMAP
14 bool
15
16source "fs/ext2/Kconfig"
17source "fs/ext4/Kconfig"
18source "fs/jbd2/Kconfig"
19
20config FS_MBCACHE
21# Meta block cache for Extended Attributes (ext2/ext3/ext4)
22 tristate
23 default y if EXT2_FS=y && EXT2_FS_XATTR
24 default y if EXT4_FS=y
25 default m if EXT2_FS_XATTR || EXT4_FS
26
27source "fs/reiserfs/Kconfig"
28source "fs/jfs/Kconfig"
29
30source "fs/xfs/Kconfig"
31source "fs/gfs2/Kconfig"
32source "fs/ocfs2/Kconfig"
33source "fs/btrfs/Kconfig"
34source "fs/nilfs2/Kconfig"
35source "fs/f2fs/Kconfig"
36
37config FS_DAX
38 bool "Direct Access (DAX) support"
39 depends on MMU
40 depends on !(ARM || MIPS || SPARC)
41 select DEV_PAGEMAP_OPS if (ZONE_DEVICE && !FS_DAX_LIMITED)
42 select FS_IOMAP
43 select DAX
44 help
45 Direct Access (DAX) can be used on memory-backed block devices.
46 If the block device supports DAX and the filesystem supports DAX,
47 then you can avoid using the pagecache to buffer I/Os. Turning
48 on this option will compile in support for DAX; you will need to
49 mount the filesystem using the -o dax option.
50
51 If you do not have a block device that is capable of using this,
52 or if unsure, say N. Saying Y will increase the size of the kernel
53 by about 5kB.
54
55config FS_DAX_PMD
56 bool
57 default FS_DAX
58 depends on FS_DAX
59 depends on ZONE_DEVICE
60 depends on TRANSPARENT_HUGEPAGE
61
62# Selected by DAX drivers that do not expect filesystem DAX to support
63# get_user_pages() of DAX mappings. I.e. "limited" indicates no support
64# for fork() of processes with MAP_SHARED mappings or support for
65# direct-I/O to a DAX mapping.
66config FS_DAX_LIMITED
67 bool
68
69endif # BLOCK
70
71# Posix ACL utility routines
72#
73# Note: Posix ACLs can be implemented without these helpers. Never use
74# this symbol for ifdefs in core code.
75#
76config FS_POSIX_ACL
77 def_bool n
78
79config EXPORTFS
80 tristate
81
82config EXPORTFS_BLOCK_OPS
83 bool "Enable filesystem export operations for block IO"
84 help
85 This option enables the export operations for a filesystem to support
86 external block IO.
87
88config FILE_LOCKING
89 bool "Enable POSIX file locking API" if EXPERT
90 default y
91 help
92 This option enables standard file locking support, required
93 for filesystems like NFS and for the flock() system
94 call. Disabling this option saves about 11k.
95
96config MANDATORY_FILE_LOCKING
97 bool "Enable Mandatory file locking"
98 depends on FILE_LOCKING
99 default y
100 help
101 This option enables files appropriately marked files on appropriely
102 mounted filesystems to support mandatory locking.
103
104 To the best of my knowledge this is dead code that no one cares about.
105
106source "fs/crypto/Kconfig"
107
108source "fs/verity/Kconfig"
109
110source "fs/notify/Kconfig"
111
112source "fs/quota/Kconfig"
113
114source "fs/autofs/Kconfig"
115source "fs/fuse/Kconfig"
116source "fs/overlayfs/Kconfig"
117
118menu "Caches"
119
120source "fs/fscache/Kconfig"
121source "fs/cachefiles/Kconfig"
122
123endmenu
124
125if BLOCK
126menu "CD-ROM/DVD Filesystems"
127
128source "fs/isofs/Kconfig"
129source "fs/udf/Kconfig"
130
131endmenu
132endif # BLOCK
133
134if BLOCK
135menu "DOS/FAT/NT Filesystems"
136
137source "fs/fat/Kconfig"
138source "fs/ntfs/Kconfig"
139
140endmenu
141endif # BLOCK
142
143menu "Pseudo filesystems"
144
145source "fs/proc/Kconfig"
146source "fs/kernfs/Kconfig"
147source "fs/sysfs/Kconfig"
148
149config TMPFS
150 bool "Tmpfs virtual memory file system support (former shm fs)"
151 depends on SHMEM
152 help
153 Tmpfs is a file system which keeps all files in virtual memory.
154
155 Everything in tmpfs is temporary in the sense that no files will be
156 created on your hard drive. The files live in memory and swap
157 space. If you unmount a tmpfs instance, everything stored therein is
158 lost.
159
160 See <file:Documentation/filesystems/tmpfs.txt> for details.
161
162config TMPFS_POSIX_ACL
163 bool "Tmpfs POSIX Access Control Lists"
164 depends on TMPFS
165 select TMPFS_XATTR
166 select FS_POSIX_ACL
167 help
168 POSIX Access Control Lists (ACLs) support additional access rights
169 for users and groups beyond the standard owner/group/world scheme,
170 and this option selects support for ACLs specifically for tmpfs
171 filesystems.
172
173 If you've selected TMPFS, it's possible that you'll also need
174 this option as there are a number of Linux distros that require
175 POSIX ACL support under /dev for certain features to work properly.
176 For example, some distros need this feature for ALSA-related /dev
177 files for sound to work properly. In short, if you're not sure,
178 say Y.
179
180config TMPFS_XATTR
181 bool "Tmpfs extended attributes"
182 depends on TMPFS
183 default n
184 help
185 Extended attributes are name:value pairs associated with inodes by
186 the kernel or by users (see the attr(5) manual page for details).
187
188 Currently this enables support for the trusted.* and
189 security.* namespaces.
190
191 You need this for POSIX ACL support on tmpfs.
192
193 If unsure, say N.
194
195config HUGETLBFS
196 bool "HugeTLB file system support"
197 depends on X86 || IA64 || SPARC64 || (S390 && 64BIT) || \
198 SYS_SUPPORTS_HUGETLBFS || BROKEN
199 help
200 hugetlbfs is a filesystem backing for HugeTLB pages, based on
201 ramfs. For architectures that support it, say Y here and read
202 <file:Documentation/admin-guide/mm/hugetlbpage.rst> for details.
203
204 If unsure, say N.
205
206config HUGETLB_PAGE
207 def_bool HUGETLBFS
208
209config MEMFD_CREATE
210 def_bool TMPFS || HUGETLBFS
211
212config ARCH_HAS_GIGANTIC_PAGE
213 bool
214
215source "fs/configfs/Kconfig"
216source "fs/efivarfs/Kconfig"
217
218endmenu
219
220menuconfig MISC_FILESYSTEMS
221 bool "Miscellaneous filesystems"
222 default y
223 ---help---
224 Say Y here to get to see options for various miscellaneous
225 filesystems, such as filesystems that came from other
226 operating systems.
227
228 This option alone does not add any kernel code.
229
230 If you say N, all options in this submenu will be skipped and
231 disabled; if unsure, say Y here.
232
233if MISC_FILESYSTEMS
234
235source "fs/orangefs/Kconfig"
236source "fs/adfs/Kconfig"
237source "fs/affs/Kconfig"
238source "fs/ecryptfs/Kconfig"
239source "fs/sdcardfs/Kconfig"
240source "fs/hfs/Kconfig"
241source "fs/hfsplus/Kconfig"
242source "fs/befs/Kconfig"
243source "fs/bfs/Kconfig"
244source "fs/efs/Kconfig"
245source "fs/yaffs2/Kconfig"
246source "fs/jffs2/Kconfig"
247# UBIFS File system configuration
248source "fs/ubifs/Kconfig"
249source "fs/cramfs/Kconfig"
250source "fs/squashfs/Kconfig"
251source "fs/freevxfs/Kconfig"
252source "fs/minix/Kconfig"
253source "fs/omfs/Kconfig"
254source "fs/hpfs/Kconfig"
255source "fs/qnx4/Kconfig"
256source "fs/qnx6/Kconfig"
257source "fs/romfs/Kconfig"
258source "fs/pstore/Kconfig"
259source "fs/sysv/Kconfig"
260source "fs/ufs/Kconfig"
261source "fs/exofs/Kconfig"
262
263endif # MISC_FILESYSTEMS
264
265source "fs/exofs/Kconfig.ore"
266
267menuconfig NETWORK_FILESYSTEMS
268 bool "Network File Systems"
269 default y
270 depends on NET
271 ---help---
272 Say Y here to get to see options for network filesystems and
273 filesystem-related networking code, such as NFS daemon and
274 RPCSEC security modules.
275
276 This option alone does not add any kernel code.
277
278 If you say N, all options in this submenu will be skipped and
279 disabled; if unsure, say Y here.
280
281if NETWORK_FILESYSTEMS
282
283source "fs/nfs/Kconfig"
284source "fs/nfsd/Kconfig"
285
286config GRACE_PERIOD
287 tristate
288
289config LOCKD
290 tristate
291 depends on FILE_LOCKING
292 select GRACE_PERIOD
293
294config LOCKD_V4
295 bool
296 depends on NFSD_V3 || NFS_V3
297 depends on FILE_LOCKING
298 default y
299
300config NFS_ACL_SUPPORT
301 tristate
302 select FS_POSIX_ACL
303
304config NFS_COMMON
305 bool
306 depends on NFSD || NFS_FS || LOCKD
307 default y
308
309source "net/sunrpc/Kconfig"
310source "fs/ceph/Kconfig"
311source "fs/cifs/Kconfig"
312source "fs/coda/Kconfig"
313source "fs/afs/Kconfig"
314source "fs/9p/Kconfig"
315
316endif # NETWORK_FILESYSTEMS
317
318source "fs/nls/Kconfig"
319source "fs/dlm/Kconfig"
320source "fs/unicode/Kconfig"
321
322endmenu