blob: bc821a86d965196e0952f452f23f2fa4bda8ee20 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# File system configuration
3#
4
5menu "File systems"
6
Linus Torvaldsbfcfaa72012-03-06 11:16:17 -08007# Use unaligned word dcache accesses
8config DCACHE_WORD_ACCESS
9 bool
10
David Howells93614012006-09-30 20:45:40 +020011if BLOCK
12
Christoph Hellwigae259a92016-06-21 09:23:11 +100013config FS_IOMAP
14 bool
15
Alexey Dobriyan6da0b382008-10-20 22:28:45 +040016source "fs/ext2/Kconfig"
Alexey Dobriyan6da0b382008-10-20 22:28:45 +040017source "fs/ext4/Kconfig"
Alexey Dobriyan6da0b382008-10-20 22:28:45 +040018source "fs/jbd2/Kconfig"
Mingming Caodab291a2006-10-11 01:21:01 -070019
Linus Torvalds1da177e2005-04-16 15:20:36 -070020config FS_MBCACHE
Mingming Cao02ea2102006-10-11 01:20:56 -070021# Meta block cache for Extended Attributes (ext2/ext3/ext4)
Linus Torvalds1da177e2005-04-16 15:20:36 -070022 tristate
Adrian Bunk2c512392008-08-20 16:56:22 -070023 default y if EXT2_FS=y && EXT2_FS_XATTR
Tao Ma939da102012-12-10 16:30:43 -050024 default y if EXT4_FS=y
Jan Karac290ea02015-06-18 16:52:29 +020025 default m if EXT2_FS_XATTR || EXT4_FS
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Alexey Dobriyanb16ecfe2009-01-22 10:22:31 +030027source "fs/reiserfs/Kconfig"
Alexey Dobriyanf5c77962009-01-22 10:24:27 +030028source "fs/jfs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Tomas Szepe69050ee2009-06-16 15:33:56 -070030source "fs/xfs/Kconfig"
31source "fs/gfs2/Kconfig"
32source "fs/ocfs2/Kconfig"
33source "fs/btrfs/Kconfig"
Ryusuke Konishi41f4db02009-08-08 16:09:46 +090034source "fs/nilfs2/Kconfig"
Jaegeuk Kimd7196c52015-03-03 17:06:55 -080035source "fs/f2fs/Kconfig"
Tomas Szepe69050ee2009-06-16 15:33:56 -070036
Matthew Wilcox6cd176a2015-02-16 15:59:25 -080037config FS_DAX
38 bool "Direct Access (DAX) support"
39 depends on MMU
Matthew Wilcoxd92576f2015-02-16 15:59:44 -080040 depends on !(ARM || MIPS || SPARC)
Ross Zwisler6affb9d2017-01-24 15:17:51 -080041 select FS_IOMAP
Dan Williamsef5104242017-05-08 10:55:27 -070042 select DAX
Matthew Wilcox6cd176a2015-02-16 15:59:25 -080043 help
44 Direct Access (DAX) can be used on memory-backed block devices.
45 If the block device supports DAX and the filesystem supports DAX,
46 then you can avoid using the pagecache to buffer I/Os. Turning
47 on this option will compile in support for DAX; you will need to
48 mount the filesystem using the -o dax option.
49
50 If you do not have a block device that is capable of using this,
51 or if unsure, say N. Saying Y will increase the size of the kernel
52 by about 5kB.
53
Dan Williamsee82c9e2015-11-15 16:06:32 -080054config FS_DAX_PMD
55 bool
56 default FS_DAX
57 depends on FS_DAX
Dan Williamsc046c322016-01-15 16:57:01 -080058 depends on ZONE_DEVICE
59 depends on TRANSPARENT_HUGEPAGE
Dan Williamsee82c9e2015-11-15 16:06:32 -080060
Dan Williams569d0362017-10-14 11:33:32 -070061# Selected by DAX drivers that do not expect filesystem DAX to support
62# get_user_pages() of DAX mappings. I.e. "limited" indicates no support
63# for fork() of processes with MAP_SHARED mappings or support for
64# direct-I/O to a DAX mapping.
65config FS_DAX_LIMITED
66 bool
67
Tomas Szepe69050ee2009-06-16 15:33:56 -070068endif # BLOCK
69
Randy Dunlap16ebe912011-01-02 14:44:00 -080070# Posix ACL utility routines
71#
72# Note: Posix ACLs can be implemented without these helpers. Never use
73# this symbol for ifdefs in core code.
74#
75config FS_POSIX_ACL
76 def_bool n
77
Randy Dunlap4199ca72010-10-26 14:22:32 -070078config EXPORTFS
Jonas Gorski79fead42011-05-24 20:12:08 +020079 tristate
Randy Dunlap4199ca72010-10-26 14:22:32 -070080
Benjamin Coddington15d66ac2016-07-08 09:53:20 -040081config EXPORTFS_BLOCK_OPS
82 bool "Enable filesystem export operations for block IO"
83 help
84 This option enables the export operations for a filesystem to support
85 external block IO.
86
Thomas Petazzonibfcd17a2008-08-06 15:12:22 +020087config FILE_LOCKING
David Rientjes6a108a12011-01-20 14:44:16 -080088 bool "Enable POSIX file locking API" if EXPERT
Thomas Petazzonibfcd17a2008-08-06 15:12:22 +020089 default y
90 help
91 This option enables standard file locking support, required
92 for filesystems like NFS and for the flock() system
93 call. Disabling this option saves about 11k.
94
Jeff Layton9e8925b2015-11-16 09:49:34 -050095config MANDATORY_FILE_LOCKING
96 bool "Enable Mandatory file locking"
97 depends on FILE_LOCKING
98 default y
99 help
100 This option enables files appropriately marked files on appropriely
101 mounted filesystems to support mandatory locking.
102
103 To the best of my knowledge this is dead code that no one cares about.
104
Jaegeuk Kim0b81d072015-05-15 16:26:10 -0700105source "fs/crypto/Kconfig"
106
Eric Paris272eb012008-12-17 13:59:41 -0500107source "fs/notify/Kconfig"
Amy Griffis2d9048e2006-06-01 13:10:59 -0700108
Jan Kara884d1792009-01-26 15:28:09 +0100109source "fs/quota/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700110
Alexey Dobriyan90ffd462009-01-22 10:31:56 +0300111source "fs/autofs4/Kconfig"
Alexey Dobriyan3ef77842009-01-22 10:33:25 +0300112source "fs/fuse/Kconfig"
Miklos Szeredie9be9d52014-10-24 00:14:38 +0200113source "fs/overlayfs/Kconfig"
Miklos Szeredi04578f12005-09-09 13:10:22 -0700114
David Howells06b3db12009-04-03 16:42:36 +0100115menu "Caches"
116
117source "fs/fscache/Kconfig"
David Howells9ae326a2009-04-03 16:42:41 +0100118source "fs/cachefiles/Kconfig"
David Howells06b3db12009-04-03 16:42:36 +0100119
120endmenu
121
David Howells93614012006-09-30 20:45:40 +0200122if BLOCK
Linus Torvalds1da177e2005-04-16 15:20:36 -0700123menu "CD-ROM/DVD Filesystems"
124
Alexey Dobriyanddfaccd2009-01-22 10:35:21 +0300125source "fs/isofs/Kconfig"
126source "fs/udf/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700127
128endmenu
Randy Dunlap25fad942008-02-07 00:15:16 -0800129endif # BLOCK
Linus Torvalds1da177e2005-04-16 15:20:36 -0700130
David Howells93614012006-09-30 20:45:40 +0200131if BLOCK
Linus Torvalds1da177e2005-04-16 15:20:36 -0700132menu "DOS/FAT/NT Filesystems"
133
Alexey Dobriyan1c6ace02009-01-22 10:37:59 +0300134source "fs/fat/Kconfig"
Alexey Dobriyan9d73ac92009-01-22 10:39:20 +0300135source "fs/ntfs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700136
137endmenu
Randy Dunlap25fad942008-02-07 00:15:16 -0800138endif # BLOCK
Linus Torvalds1da177e2005-04-16 15:20:36 -0700139
140menu "Pseudo filesystems"
141
Alexey Dobriyan6eedf8d2008-07-25 01:48:30 -0700142source "fs/proc/Kconfig"
Tejun Heoba341d52014-02-03 14:09:17 -0500143source "fs/kernfs/Kconfig"
Alexey Dobriyan5f3a2112009-01-22 10:40:58 +0300144source "fs/sysfs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700145
Linus Torvalds1da177e2005-04-16 15:20:36 -0700146config TMPFS
Robert P. J. Dayf5fc8702011-10-31 17:07:21 -0700147 bool "Tmpfs virtual memory file system support (former shm fs)"
Hugh Dickins3f96b792009-09-21 17:03:37 -0700148 depends on SHMEM
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149 help
150 Tmpfs is a file system which keeps all files in virtual memory.
151
152 Everything in tmpfs is temporary in the sense that no files will be
153 created on your hard drive. The files live in memory and swap
154 space. If you unmount a tmpfs instance, everything stored therein is
155 lost.
156
157 See <file:Documentation/filesystems/tmpfs.txt> for details.
158
Eric Paris4db70f72011-05-25 19:49:18 -0700159config TMPFS_POSIX_ACL
160 bool "Tmpfs POSIX Access Control Lists"
161 depends on TMPFS
162 select TMPFS_XATTR
Christoph Hellwigfeda8212013-12-20 05:16:54 -0800163 select FS_POSIX_ACL
Eric Paris4db70f72011-05-25 19:49:18 -0700164 help
Robert P. J. Day206506c2011-08-03 16:21:29 -0700165 POSIX Access Control Lists (ACLs) support additional access rights
166 for users and groups beyond the standard owner/group/world scheme,
167 and this option selects support for ACLs specifically for tmpfs
168 filesystems.
169
170 If you've selected TMPFS, it's possible that you'll also need
171 this option as there are a number of Linux distros that require
172 POSIX ACL support under /dev for certain features to work properly.
173 For example, some distros need this feature for ALSA-related /dev
174 files for sound to work properly. In short, if you're not sure,
175 say Y.
Eric Paris4db70f72011-05-25 19:49:18 -0700176
Eric Parisb09e0fa2011-05-24 17:12:39 -0700177config TMPFS_XATTR
178 bool "Tmpfs extended attributes"
179 depends on TMPFS
180 default n
181 help
182 Extended attributes are name:value pairs associated with inodes by
Adam Borowski91581e42017-12-20 14:58:52 +0100183 the kernel or by users (see the attr(5) manual page for details).
Eric Parisb09e0fa2011-05-24 17:12:39 -0700184
185 Currently this enables support for the trusted.* and
186 security.* namespaces.
187
Eric Parisb09e0fa2011-05-24 17:12:39 -0700188 You need this for POSIX ACL support on tmpfs.
189
Eric Paris4db70f72011-05-25 19:49:18 -0700190 If unsure, say N.
Andreas Gruenbacher39f02472006-09-29 02:01:35 -0700191
Linus Torvalds1da177e2005-04-16 15:20:36 -0700192config HUGETLBFS
193 bool "HugeTLB file system support"
Benjamin Herrenschmidt5a1eb5c2009-10-30 15:03:54 +1100194 depends on X86 || IA64 || SPARC64 || (S390 && 64BIT) || \
Paul Mundtffb4a732009-10-27 07:22:37 +0900195 SYS_SUPPORTS_HUGETLBFS || BROKEN
Arthur Othienodda27d12006-04-18 22:20:57 -0700196 help
197 hugetlbfs is a filesystem backing for HugeTLB pages, based on
198 ramfs. For architectures that support it, say Y here and read
199 <file:Documentation/vm/hugetlbpage.txt> for details.
200
201 If unsure, say N.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700202
203config HUGETLB_PAGE
204 def_bool HUGETLBFS
205
Yisheng Xie461a7182016-10-07 17:01:46 -0700206config ARCH_HAS_GIGANTIC_PAGE
207 bool
208
Alexey Dobriyan4591dab2009-01-22 10:42:52 +0300209source "fs/configfs/Kconfig"
Leif Lindholm62c204d2014-12-18 17:50:49 +0000210source "fs/efivarfs/Kconfig"
Joel Becker7063fbf2005-12-15 14:29:43 -0800211
Linus Torvalds1da177e2005-04-16 15:20:36 -0700212endmenu
213
Randy Dunlap67ec7d32009-01-06 14:40:57 -0800214menuconfig MISC_FILESYSTEMS
215 bool "Miscellaneous filesystems"
216 default y
217 ---help---
218 Say Y here to get to see options for various miscellaneous
219 filesystems, such as filesystems that came from other
220 operating systems.
221
222 This option alone does not add any kernel code.
223
224 If you say N, all options in this submenu will be skipped and
225 disabled; if unsure, say Y here.
226
227if MISC_FILESYSTEMS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700228
Mike Marshall07f01962015-07-17 10:38:17 -0400229source "fs/orangefs/Kconfig"
Alexey Dobriyanbc2de2a2009-01-22 10:48:46 +0300230source "fs/adfs/Kconfig"
Alexey Dobriyan10951bf2009-01-22 10:49:44 +0300231source "fs/affs/Kconfig"
Alexey Dobriyan295c8962009-01-22 10:50:50 +0300232source "fs/ecryptfs/Kconfig"
Alexey Dobriyanb08bac12009-01-22 10:53:24 +0300233source "fs/hfs/Kconfig"
234source "fs/hfsplus/Kconfig"
Alexey Dobriyan0b09eb32009-01-22 10:54:16 +0300235source "fs/befs/Kconfig"
Alexey Dobriyan0ff42382009-01-22 10:55:13 +0300236source "fs/bfs/Kconfig"
Alexey Dobriyan571f0a02009-01-22 10:56:07 +0300237source "fs/efs/Kconfig"
Alexey Dobriyan31db6e92008-08-29 07:19:50 +0400238source "fs/jffs2/Kconfig"
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +0300239# UBIFS File system configuration
240source "fs/ubifs/Kconfig"
Alexey Dobriyan2a227832009-01-22 10:56:54 +0300241source "fs/cramfs/Kconfig"
Alexey Dobriyan22635ec2009-01-22 10:57:46 +0300242source "fs/squashfs/Kconfig"
Alexey Dobriyan22135162009-01-22 10:58:51 +0300243source "fs/freevxfs/Kconfig"
Alexey Dobriyan8b1cd7d2009-01-22 10:59:49 +0300244source "fs/minix/Kconfig"
Alexey Dobriyanda55e6f2009-01-22 11:00:41 +0300245source "fs/omfs/Kconfig"
Alexey Dobriyan928ea192009-01-22 11:01:26 +0300246source "fs/hpfs/Kconfig"
Alexey Dobriyan4c741582009-01-22 11:02:21 +0300247source "fs/qnx4/Kconfig"
Kai Bankett5d026c72012-02-17 05:59:20 +0100248source "fs/qnx6/Kconfig"
Alexey Dobriyan41810242009-01-22 11:03:34 +0300249source "fs/romfs/Kconfig"
Tony Luckca01d6d2010-12-28 14:25:21 -0800250source "fs/pstore/Kconfig"
Alexey Dobriyan8af915b2009-01-22 11:04:23 +0300251source "fs/sysv/Kconfig"
Alexey Dobriyana276a522009-01-22 11:05:02 +0300252source "fs/ufs/Kconfig"
Boaz Harrosh0d8fe322008-12-15 12:53:08 +0200253source "fs/exofs/Kconfig"
Ryusuke Konishi0c4fb872009-04-06 19:01:41 -0700254
Randy Dunlap67ec7d32009-01-06 14:40:57 -0800255endif # MISC_FILESYSTEMS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700256
Boaz Harrosh831c2dc2011-11-29 15:35:53 -0800257source "fs/exofs/Kconfig.ore"
258
Jan Engelhardtea0985a2007-10-16 23:30:16 -0700259menuconfig NETWORK_FILESYSTEMS
260 bool "Network File Systems"
261 default y
Linus Torvalds1da177e2005-04-16 15:20:36 -0700262 depends on NET
Jan Engelhardtea0985a2007-10-16 23:30:16 -0700263 ---help---
264 Say Y here to get to see options for network filesystems and
265 filesystem-related networking code, such as NFS daemon and
266 RPCSEC security modules.
Chuck Lever6fb1bc12008-05-21 17:09:04 -0400267
Jan Engelhardtea0985a2007-10-16 23:30:16 -0700268 This option alone does not add any kernel code.
269
270 If you say N, all options in this submenu will be skipped and
271 disabled; if unsure, say Y here.
272
273if NETWORK_FILESYSTEMS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700274
Alexey Dobriyan97afe472009-01-22 11:07:41 +0300275source "fs/nfs/Kconfig"
Alexey Dobriyane2b329e2009-01-22 11:08:58 +0300276source "fs/nfsd/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700277
Jeff Laytonf7790022014-09-12 16:40:20 -0400278config GRACE_PERIOD
279 tristate
280
Linus Torvalds1da177e2005-04-16 15:20:36 -0700281config LOCKD
282 tristate
Randy Dunlapdd4dc822009-05-12 13:28:09 -0700283 depends on FILE_LOCKING
Jeff Laytonf7790022014-09-12 16:40:20 -0400284 select GRACE_PERIOD
Linus Torvalds1da177e2005-04-16 15:20:36 -0700285
286config LOCKD_V4
287 bool
288 depends on NFSD_V3 || NFS_V3
Randy Dunlapdd4dc822009-05-12 13:28:09 -0700289 depends on FILE_LOCKING
Linus Torvalds1da177e2005-04-16 15:20:36 -0700290 default y
291
Andreas Gruenbachera257cdd2005-06-22 17:16:26 +0000292config NFS_ACL_SUPPORT
293 tristate
294 select FS_POSIX_ACL
295
296config NFS_COMMON
297 bool
Jeff Laytonf7790022014-09-12 16:40:20 -0400298 depends on NFSD || NFS_FS || LOCKD
Andreas Gruenbachera257cdd2005-06-22 17:16:26 +0000299 default y
300
Alexey Dobriyan9098c242009-01-22 11:11:56 +0300301source "net/sunrpc/Kconfig"
Sage Weil9030aaf2009-10-06 11:31:15 -0700302source "fs/ceph/Kconfig"
Alexey Dobriyanbb26b962008-10-18 20:28:49 -0700303source "fs/cifs/Kconfig"
Alexey Dobriyan33a1a6f2009-01-22 11:15:06 +0300304source "fs/coda/Kconfig"
Alexey Dobriyanb2480c72009-01-22 11:16:02 +0300305source "fs/afs/Kconfig"
Alexey Dobriyan0fcb4402009-01-22 11:16:42 +0300306source "fs/9p/Kconfig"
Eric Van Hensbergen93fa58c2005-09-09 13:04:18 -0700307
Jan Engelhardtea0985a2007-10-16 23:30:16 -0700308endif # NETWORK_FILESYSTEMS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700309
Linus Torvalds1da177e2005-04-16 15:20:36 -0700310source "fs/nls/Kconfig"
David Teiglande7fd4172006-01-18 09:30:29 +0000311source "fs/dlm/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700312
313endmenu