Kconfig 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  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. config FS_IOMAP
  15. bool
  16. if BLOCK
  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. endif # BLOCK
  36. config FS_DAX
  37. bool "File system based Direct Access (DAX) support"
  38. depends on MMU
  39. depends on !(ARM || MIPS || SPARC)
  40. depends on ZONE_DEVICE || FS_DAX_LIMITED
  41. select FS_IOMAP
  42. select DAX
  43. 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.
  48. For a DAX device to support file system access it needs to have
  49. struct pages. For the nfit based NVDIMMs this can be enabled
  50. using the ndctl utility:
  51. # ndctl create-namespace --force --reconfig=namespace0.0 \
  52. --mode=fsdax --map=mem
  53. See the 'create-namespace' man page for details on the overhead of
  54. --map=mem:
  55. https://docs.pmem.io/ndctl-user-guide/ndctl-man-pages/ndctl-create-namespace
  56. For ndctl to work CONFIG_DEV_DAX needs to be enabled as well. For most
  57. file systems DAX support needs to be manually enabled globally or
  58. per-inode using a mount option as well. See the file documentation in
  59. Documentation/filesystems/dax.rst for details.
  60. If you do not have a block device that is capable of using this,
  61. or if unsure, say N. Saying Y will increase the size of the kernel
  62. by about 5kB.
  63. config FS_DAX_PMD
  64. bool
  65. default FS_DAX
  66. depends on FS_DAX
  67. depends on ZONE_DEVICE
  68. depends on TRANSPARENT_HUGEPAGE
  69. # Selected by DAX drivers that do not expect filesystem DAX to support
  70. # get_user_pages() of DAX mappings. I.e. "limited" indicates no support
  71. # for fork() of processes with MAP_SHARED mappings or support for
  72. # direct-I/O to a DAX mapping.
  73. config FS_DAX_LIMITED
  74. bool
  75. # Posix ACL utility routines
  76. #
  77. # Note: Posix ACLs can be implemented without these helpers. Never use
  78. # this symbol for ifdefs in core code.
  79. #
  80. config FS_POSIX_ACL
  81. def_bool n
  82. config EXPORTFS
  83. tristate
  84. config EXPORTFS_BLOCK_OPS
  85. bool "Enable filesystem export operations for block IO"
  86. help
  87. This option enables the export operations for a filesystem to support
  88. external block IO.
  89. config FILE_LOCKING
  90. bool "Enable POSIX file locking API" if EXPERT
  91. default y
  92. help
  93. This option enables standard file locking support, required
  94. for filesystems like NFS and for the flock() system
  95. call. Disabling this option saves about 11k.
  96. source "fs/crypto/Kconfig"
  97. source "fs/verity/Kconfig"
  98. source "fs/notify/Kconfig"
  99. source "fs/quota/Kconfig"
  100. source "fs/autofs/Kconfig"
  101. source "fs/fuse/Kconfig"
  102. source "fs/overlayfs/Kconfig"
  103. source "fs/incfs/Kconfig"
  104. menu "Caches"
  105. source "fs/netfs/Kconfig"
  106. source "fs/fscache/Kconfig"
  107. source "fs/cachefiles/Kconfig"
  108. endmenu
  109. if BLOCK
  110. menu "CD-ROM/DVD Filesystems"
  111. source "fs/isofs/Kconfig"
  112. source "fs/udf/Kconfig"
  113. endmenu
  114. endif # BLOCK
  115. if BLOCK
  116. menu "DOS/FAT/EXFAT/NT Filesystems"
  117. source "fs/fat/Kconfig"
  118. source "fs/exfat/Kconfig"
  119. source "fs/ntfs/Kconfig"
  120. source "fs/ntfs3/Kconfig"
  121. endmenu
  122. endif # BLOCK
  123. menu "Pseudo filesystems"
  124. source "fs/proc/Kconfig"
  125. source "fs/kernfs/Kconfig"
  126. source "fs/sysfs/Kconfig"
  127. config TMPFS
  128. bool "Tmpfs virtual memory file system support (former shm fs)"
  129. depends on SHMEM
  130. help
  131. Tmpfs is a file system which keeps all files in virtual memory.
  132. Everything in tmpfs is temporary in the sense that no files will be
  133. created on your hard drive. The files live in memory and swap
  134. space. If you unmount a tmpfs instance, everything stored therein is
  135. lost.
  136. See <file:Documentation/filesystems/tmpfs.rst> for details.
  137. config TMPFS_POSIX_ACL
  138. bool "Tmpfs POSIX Access Control Lists"
  139. depends on TMPFS
  140. select TMPFS_XATTR
  141. select FS_POSIX_ACL
  142. help
  143. POSIX Access Control Lists (ACLs) support additional access rights
  144. for users and groups beyond the standard owner/group/world scheme,
  145. and this option selects support for ACLs specifically for tmpfs
  146. filesystems.
  147. If you've selected TMPFS, it's possible that you'll also need
  148. this option as there are a number of Linux distros that require
  149. POSIX ACL support under /dev for certain features to work properly.
  150. For example, some distros need this feature for ALSA-related /dev
  151. files for sound to work properly. In short, if you're not sure,
  152. say Y.
  153. config TMPFS_XATTR
  154. bool "Tmpfs extended attributes"
  155. depends on TMPFS
  156. default n
  157. help
  158. Extended attributes are name:value pairs associated with inodes by
  159. the kernel or by users (see the attr(5) manual page for details).
  160. Currently this enables support for the trusted.* and
  161. security.* namespaces.
  162. You need this for POSIX ACL support on tmpfs.
  163. If unsure, say N.
  164. config TMPFS_INODE64
  165. bool "Use 64-bit ino_t by default in tmpfs"
  166. depends on TMPFS && 64BIT
  167. default n
  168. help
  169. tmpfs has historically used only inode numbers as wide as an unsigned
  170. int. In some cases this can cause wraparound, potentially resulting
  171. in multiple files with the same inode number on a single device. This
  172. option makes tmpfs use the full width of ino_t by default, without
  173. needing to specify the inode64 option when mounting.
  174. But if a long-lived tmpfs is to be accessed by 32-bit applications so
  175. ancient that opening a file larger than 2GiB fails with EINVAL, then
  176. the INODE64 config option and inode64 mount option risk operations
  177. failing with EOVERFLOW once 33-bit inode numbers are reached.
  178. To override this configured default, use the inode32 or inode64
  179. option when mounting.
  180. If unsure, say N.
  181. config ARCH_SUPPORTS_HUGETLBFS
  182. def_bool n
  183. config HUGETLBFS
  184. bool "HugeTLB file system support"
  185. depends on X86 || IA64 || SPARC64 || ARCH_SUPPORTS_HUGETLBFS || BROKEN
  186. depends on (SYSFS || SYSCTL)
  187. help
  188. hugetlbfs is a filesystem backing for HugeTLB pages, based on
  189. ramfs. For architectures that support it, say Y here and read
  190. <file:Documentation/admin-guide/mm/hugetlbpage.rst> for details.
  191. If unsure, say N.
  192. config HUGETLB_PAGE
  193. def_bool HUGETLBFS
  194. #
  195. # Select this config option from the architecture Kconfig, if it is preferred
  196. # to enable the feature of HugeTLB Vmemmap Optimization (HVO).
  197. #
  198. config ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP
  199. bool
  200. config HUGETLB_PAGE_OPTIMIZE_VMEMMAP
  201. def_bool HUGETLB_PAGE
  202. depends on ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP
  203. depends on SPARSEMEM_VMEMMAP
  204. config HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON
  205. bool "HugeTLB Vmemmap Optimization (HVO) defaults to on"
  206. default n
  207. depends on HUGETLB_PAGE_OPTIMIZE_VMEMMAP
  208. help
  209. The HugeTLB VmemmapvOptimization (HVO) defaults to off. Say Y here to
  210. enable HVO by default. It can be disabled via hugetlb_free_vmemmap=off
  211. (boot command line) or hugetlb_optimize_vmemmap (sysctl).
  212. config MEMFD_CREATE
  213. def_bool TMPFS || HUGETLBFS
  214. config ARCH_HAS_GIGANTIC_PAGE
  215. bool
  216. source "fs/configfs/Kconfig"
  217. source "fs/efivarfs/Kconfig"
  218. endmenu
  219. menuconfig MISC_FILESYSTEMS
  220. bool "Miscellaneous filesystems"
  221. default y
  222. help
  223. Say Y here to get to see options for various miscellaneous
  224. filesystems, such as filesystems that came from other
  225. operating systems.
  226. This option alone does not add any kernel code.
  227. If you say N, all options in this submenu will be skipped and
  228. disabled; if unsure, say Y here.
  229. if MISC_FILESYSTEMS
  230. source "fs/orangefs/Kconfig"
  231. source "fs/adfs/Kconfig"
  232. source "fs/affs/Kconfig"
  233. source "fs/ecryptfs/Kconfig"
  234. source "fs/hfs/Kconfig"
  235. source "fs/hfsplus/Kconfig"
  236. source "fs/befs/Kconfig"
  237. source "fs/bfs/Kconfig"
  238. source "fs/efs/Kconfig"
  239. source "fs/jffs2/Kconfig"
  240. # UBIFS File system configuration
  241. source "fs/ubifs/Kconfig"
  242. source "fs/cramfs/Kconfig"
  243. source "fs/squashfs/Kconfig"
  244. source "fs/freevxfs/Kconfig"
  245. source "fs/minix/Kconfig"
  246. source "fs/omfs/Kconfig"
  247. source "fs/hpfs/Kconfig"
  248. source "fs/qnx4/Kconfig"
  249. source "fs/qnx6/Kconfig"
  250. source "fs/romfs/Kconfig"
  251. source "fs/pstore/Kconfig"
  252. source "fs/sysv/Kconfig"
  253. source "fs/ufs/Kconfig"
  254. source "fs/erofs/Kconfig"
  255. source "fs/vboxsf/Kconfig"
  256. endif # MISC_FILESYSTEMS
  257. menuconfig NETWORK_FILESYSTEMS
  258. bool "Network File Systems"
  259. default y
  260. depends on NET
  261. help
  262. Say Y here to get to see options for network filesystems and
  263. filesystem-related networking code, such as NFS daemon and
  264. RPCSEC security modules.
  265. This option alone does not add any kernel code.
  266. If you say N, all options in this submenu will be skipped and
  267. disabled; if unsure, say Y here.
  268. if NETWORK_FILESYSTEMS
  269. source "fs/nfs/Kconfig"
  270. source "fs/nfsd/Kconfig"
  271. config GRACE_PERIOD
  272. tristate
  273. config LOCKD
  274. tristate
  275. depends on FILE_LOCKING
  276. select GRACE_PERIOD
  277. config LOCKD_V4
  278. bool
  279. depends on NFSD || NFS_V3
  280. depends on FILE_LOCKING
  281. default y
  282. config NFS_ACL_SUPPORT
  283. tristate
  284. select FS_POSIX_ACL
  285. config NFS_COMMON
  286. bool
  287. depends on NFSD || NFS_FS || LOCKD
  288. default y
  289. config NFS_V4_2_SSC_HELPER
  290. bool
  291. default y if NFS_V4_2
  292. source "net/sunrpc/Kconfig"
  293. source "fs/ceph/Kconfig"
  294. source "fs/smb/Kconfig"
  295. source "fs/coda/Kconfig"
  296. source "fs/afs/Kconfig"
  297. source "fs/9p/Kconfig"
  298. endif # NETWORK_FILESYSTEMS
  299. source "fs/nls/Kconfig"
  300. source "fs/dlm/Kconfig"
  301. source "fs/unicode/Kconfig"
  302. config IO_WQ
  303. bool
  304. endmenu