Kconfig 10 KB

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