Kconfig 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config NFS_FS
  3. tristate "NFS client support"
  4. depends on INET && FILE_LOCKING && MULTIUSER
  5. select CRC32
  6. select LOCKD
  7. select SUNRPC
  8. select NFS_COMMON
  9. select NFS_ACL_SUPPORT if NFS_V3_ACL
  10. help
  11. Choose Y here if you want to access files residing on other
  12. computers using Sun's Network File System protocol. To compile
  13. this file system support as a module, choose M here: the module
  14. will be called nfs.
  15. To mount file systems exported by NFS servers, you also need to
  16. install the user space mount.nfs command which can be found in
  17. the Linux nfs-utils package, available from http://linux-nfs.org/.
  18. Information about using the mount command is available in the
  19. mount(8) man page. More detail about the Linux NFS client
  20. implementation is available via the nfs(5) man page.
  21. Below you can choose which versions of the NFS protocol are
  22. available in the kernel to mount NFS servers. Support for NFS
  23. version 2 (RFC 1094) is always available when NFS_FS is selected.
  24. To configure a system which mounts its root file system via NFS
  25. at boot time, say Y here, select "Kernel level IP
  26. autoconfiguration" in the NETWORK menu, and select "Root file
  27. system on NFS" below. You cannot compile this file system as a
  28. module in this case.
  29. If unsure, say N.
  30. config NFS_V2
  31. tristate "NFS client support for NFS version 2"
  32. depends on NFS_FS
  33. default n
  34. help
  35. This option enables support for version 2 of the NFS protocol
  36. (RFC 1094) in the kernel's NFS client.
  37. If unsure, say N.
  38. config NFS_V3
  39. tristate "NFS client support for NFS version 3"
  40. depends on NFS_FS
  41. default y
  42. help
  43. This option enables support for version 3 of the NFS protocol
  44. (RFC 1813) in the kernel's NFS client.
  45. If unsure, say Y.
  46. config NFS_V3_ACL
  47. bool "NFS client support for the NFSv3 ACL protocol extension"
  48. depends on NFS_V3
  49. help
  50. Some NFS servers support an auxiliary NFSv3 ACL protocol that
  51. Sun added to Solaris but never became an official part of the
  52. NFS version 3 protocol. This protocol extension allows
  53. applications on NFS clients to manipulate POSIX Access Control
  54. Lists on files residing on NFS servers. NFS servers enforce
  55. ACLs on local files whether this protocol is available or not.
  56. Choose Y here if your NFS server supports the Solaris NFSv3 ACL
  57. protocol extension and you want your NFS client to allow
  58. applications to access and modify ACLs on files on the server.
  59. Most NFS servers don't support the Solaris NFSv3 ACL protocol
  60. extension. You can choose N here or specify the "noacl" mount
  61. option to prevent your NFS client from trying to use the NFSv3
  62. ACL protocol.
  63. If unsure, say N.
  64. config NFS_V4
  65. tristate "NFS client support for NFS version 4"
  66. depends on NFS_FS
  67. select KEYS
  68. select SUNRPC_BACKCHANNEL
  69. help
  70. This option enables support for version 4.1 of the NFS protocol
  71. (RFC 5661) in the kernel's NFS client.
  72. To mount NFS servers using NFSv4, you also need to install user
  73. space programs which can be found in the Linux nfs-utils package,
  74. available from http://linux-nfs.org/.
  75. If unsure, say N.
  76. config NFS_SWAP
  77. bool "Provide swap over NFS support"
  78. default n
  79. depends on NFS_FS && SWAP
  80. select SUNRPC_SWAP
  81. help
  82. This option enables swapon to work on files located on NFS mounts.
  83. config NFS_V4_0
  84. bool "NFS client support for NFSv4.0"
  85. depends on NFS_V4
  86. default y
  87. help
  88. This option enables support for minor version 0 of the NFSv4 protocol
  89. (RFC 3530) in the kernel's NFS client.
  90. If unsure, say N.
  91. config NFS_V4_2
  92. bool "NFS client support for NFSv4.2"
  93. depends on NFS_V4
  94. help
  95. This option enables support for minor version 2 of the NFSv4 protocol
  96. in the kernel's NFS client.
  97. If unsure, say N.
  98. config PNFS_FILE_LAYOUT
  99. tristate
  100. depends on NFS_V4
  101. default NFS_V4
  102. config PNFS_BLOCK
  103. tristate
  104. depends on NFS_V4 && BLK_DEV_DM
  105. default NFS_V4
  106. config PNFS_FLEXFILE_LAYOUT
  107. tristate
  108. depends on NFS_V4
  109. default NFS_V4
  110. config NFS_V4_1_IMPLEMENTATION_ID_DOMAIN
  111. string "NFSv4.1 Implementation ID Domain"
  112. depends on NFS_V4
  113. default "kernel.org"
  114. help
  115. This option defines the domain portion of the implementation ID that
  116. may be sent in the NFS exchange_id operation. The value must be in
  117. the format of a DNS domain name and should be set to the DNS domain
  118. name of the distribution.
  119. If the NFS client is unchanged from the upstream kernel, this
  120. option should be set to the default "kernel.org".
  121. config NFS_V4_1_MIGRATION
  122. bool "NFSv4.1 client support for migration"
  123. depends on NFS_V4
  124. default n
  125. help
  126. This option makes the NFS client advertise to NFSv4.1 servers that
  127. it can support NFSv4 migration.
  128. The NFSv4.1 pieces of the Linux NFSv4 migration implementation are
  129. still experimental. If you are not an NFSv4 developer, say N here.
  130. config NFS_V4_SECURITY_LABEL
  131. bool
  132. depends on NFS_V4_2 && SECURITY
  133. default y
  134. config ROOT_NFS
  135. bool "Root file system on NFS"
  136. depends on NFS_FS=y && IP_PNP
  137. help
  138. If you want your system to mount its root file system via NFS,
  139. choose Y here. This is common practice for managing systems
  140. without local permanent storage. For details, read
  141. <file:Documentation/admin-guide/nfs/nfsroot.rst>.
  142. Most people say N here.
  143. config NFS_FSCACHE
  144. bool "Provide NFS client caching support"
  145. depends on NFS_FS
  146. select NETFS_SUPPORT
  147. select FSCACHE
  148. help
  149. Say Y here if you want NFS data to be cached locally on disc through
  150. the general filesystem cache manager
  151. config NFS_USE_LEGACY_DNS
  152. bool "Use the legacy NFS DNS resolver"
  153. depends on NFS_V4
  154. help
  155. The kernel now provides a method for translating a host name into an
  156. IP address. Select Y here if you would rather use your own DNS
  157. resolver script.
  158. If unsure, say N
  159. config NFS_USE_KERNEL_DNS
  160. bool
  161. depends on NFS_V4 && !NFS_USE_LEGACY_DNS
  162. select DNS_RESOLVER
  163. default y
  164. config NFS_DEBUG
  165. bool
  166. depends on NFS_FS && SUNRPC_DEBUG
  167. default y
  168. config NFS_DISABLE_UDP_SUPPORT
  169. bool "NFS: Disable NFS UDP protocol support"
  170. depends on NFS_FS
  171. default y
  172. help
  173. Choose Y here to disable the use of NFS over UDP. NFS over UDP
  174. on modern networks (1Gb+) can lead to data corruption caused by
  175. fragmentation during high loads.
  176. config NFS_V4_2_READ_PLUS
  177. bool "NFS: Enable support for the NFSv4.2 READ_PLUS operation"
  178. depends on NFS_V4_2
  179. default y
  180. help
  181. Choose Y here to enable use of the NFS v4.2 READ_PLUS operation.