Kconfig 8.6 KB

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