Kconfig 11 KB

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