xref: /linux/fs/nfs/Kconfig (revision e3074507d93a0b7f1430dec7c6addb307d4f30da)
197afe47aSAlexey Dobriyanconfig NFS_FS
297afe47aSAlexey Dobriyan	tristate "NFS client support"
3dd4dc82dSRandy Dunlap	depends on INET && FILE_LOCKING
497afe47aSAlexey Dobriyan	select LOCKD
597afe47aSAlexey Dobriyan	select SUNRPC
697afe47aSAlexey Dobriyan	select NFS_ACL_SUPPORT if NFS_V3_ACL
797afe47aSAlexey Dobriyan	help
897afe47aSAlexey Dobriyan	  Choose Y here if you want to access files residing on other
997afe47aSAlexey Dobriyan	  computers using Sun's Network File System protocol.  To compile
1097afe47aSAlexey Dobriyan	  this file system support as a module, choose M here: the module
1197afe47aSAlexey Dobriyan	  will be called nfs.
1297afe47aSAlexey Dobriyan
1397afe47aSAlexey Dobriyan	  To mount file systems exported by NFS servers, you also need to
1497afe47aSAlexey Dobriyan	  install the user space mount.nfs command which can be found in
1597afe47aSAlexey Dobriyan	  the Linux nfs-utils package, available from http://linux-nfs.org/.
1697afe47aSAlexey Dobriyan	  Information about using the mount command is available in the
1797afe47aSAlexey Dobriyan	  mount(8) man page.  More detail about the Linux NFS client
1897afe47aSAlexey Dobriyan	  implementation is available via the nfs(5) man page.
1997afe47aSAlexey Dobriyan
2097afe47aSAlexey Dobriyan	  Below you can choose which versions of the NFS protocol are
2197afe47aSAlexey Dobriyan	  available in the kernel to mount NFS servers.  Support for NFS
2297afe47aSAlexey Dobriyan	  version 2 (RFC 1094) is always available when NFS_FS is selected.
2397afe47aSAlexey Dobriyan
2497afe47aSAlexey Dobriyan	  To configure a system which mounts its root file system via NFS
2597afe47aSAlexey Dobriyan	  at boot time, say Y here, select "Kernel level IP
2697afe47aSAlexey Dobriyan	  autoconfiguration" in the NETWORK menu, and select "Root file
2797afe47aSAlexey Dobriyan	  system on NFS" below.  You cannot compile this file system as a
2897afe47aSAlexey Dobriyan	  module in this case.
2997afe47aSAlexey Dobriyan
3097afe47aSAlexey Dobriyan	  If unsure, say N.
3197afe47aSAlexey Dobriyan
322ba68002SBryan Schumakerconfig NFS_V2
332ba68002SBryan Schumaker	bool "NFS client support for NFS version 2"
342ba68002SBryan Schumaker	depends on NFS_FS
352ba68002SBryan Schumaker	default y
362ba68002SBryan Schumaker	help
372ba68002SBryan Schumaker	  This option enables support for version 2 of the NFS protocol
382ba68002SBryan Schumaker	  (RFC 1094) in the kernel's NFS client.
392ba68002SBryan Schumaker
402ba68002SBryan Schumaker	  If unsure, say Y.
412ba68002SBryan Schumaker
4297afe47aSAlexey Dobriyanconfig NFS_V3
4397afe47aSAlexey Dobriyan	bool "NFS client support for NFS version 3"
4497afe47aSAlexey Dobriyan	depends on NFS_FS
45981f9facSBryan Schumaker	default y
4697afe47aSAlexey Dobriyan	help
4797afe47aSAlexey Dobriyan	  This option enables support for version 3 of the NFS protocol
4897afe47aSAlexey Dobriyan	  (RFC 1813) in the kernel's NFS client.
4997afe47aSAlexey Dobriyan
5097afe47aSAlexey Dobriyan	  If unsure, say Y.
5197afe47aSAlexey Dobriyan
5297afe47aSAlexey Dobriyanconfig NFS_V3_ACL
5397afe47aSAlexey Dobriyan	bool "NFS client support for the NFSv3 ACL protocol extension"
5497afe47aSAlexey Dobriyan	depends on NFS_V3
5597afe47aSAlexey Dobriyan	help
5697afe47aSAlexey Dobriyan	  Some NFS servers support an auxiliary NFSv3 ACL protocol that
5797afe47aSAlexey Dobriyan	  Sun added to Solaris but never became an official part of the
5897afe47aSAlexey Dobriyan	  NFS version 3 protocol.  This protocol extension allows
5997afe47aSAlexey Dobriyan	  applications on NFS clients to manipulate POSIX Access Control
6097afe47aSAlexey Dobriyan	  Lists on files residing on NFS servers.  NFS servers enforce
6197afe47aSAlexey Dobriyan	  ACLs on local files whether this protocol is available or not.
6297afe47aSAlexey Dobriyan
6397afe47aSAlexey Dobriyan	  Choose Y here if your NFS server supports the Solaris NFSv3 ACL
6497afe47aSAlexey Dobriyan	  protocol extension and you want your NFS client to allow
6597afe47aSAlexey Dobriyan	  applications to access and modify ACLs on files on the server.
6697afe47aSAlexey Dobriyan
6797afe47aSAlexey Dobriyan	  Most NFS servers don't support the Solaris NFSv3 ACL protocol
6897afe47aSAlexey Dobriyan	  extension.  You can choose N here or specify the "noacl" mount
6997afe47aSAlexey Dobriyan	  option to prevent your NFS client from trying to use the NFSv3
7097afe47aSAlexey Dobriyan	  ACL protocol.
7197afe47aSAlexey Dobriyan
7297afe47aSAlexey Dobriyan	  If unsure, say N.
7397afe47aSAlexey Dobriyan
7497afe47aSAlexey Dobriyanconfig NFS_V4
75b3edc2bcSTrond Myklebust	bool "NFS client support for NFS version 4"
76b3edc2bcSTrond Myklebust	depends on NFS_FS
77827e3457STrond Myklebust	select SUNRPC_GSS
78e3da8706STrond Myklebust	select KEYS
7997afe47aSAlexey Dobriyan	help
8097afe47aSAlexey Dobriyan	  This option enables support for version 4 of the NFS protocol
8197afe47aSAlexey Dobriyan	  (RFC 3530) in the kernel's NFS client.
8297afe47aSAlexey Dobriyan
8397afe47aSAlexey Dobriyan	  To mount NFS servers using NFSv4, you also need to install user
8497afe47aSAlexey Dobriyan	  space programs which can be found in the Linux nfs-utils package,
8597afe47aSAlexey Dobriyan	  available from http://linux-nfs.org/.
8697afe47aSAlexey Dobriyan
87b3edc2bcSTrond Myklebust	  If unsure, say Y.
8897afe47aSAlexey Dobriyan
891efae381SRicardo Labiagaconfig NFS_V4_1
903dce9a5cSTrond Myklebust	bool "NFS client support for NFSv4.1 (EXPERIMENTAL)"
91*e3074507STrond Myklebust	depends on NFS_V4 && EXPERIMENTAL
929e00abc3STrond Myklebust	select SUNRPC_BACKCHANNEL
931efae381SRicardo Labiaga	help
941efae381SRicardo Labiaga	  This option enables support for minor version 1 of the NFSv4 protocol
9554a33b19SPeng Tao	  (RFC 5661) in the kernel's NFS client.
961efae381SRicardo Labiaga
973dce9a5cSTrond Myklebust	  If unsure, say N.
981efae381SRicardo Labiaga
9902c35fcaSFred Isamanconfig PNFS_FILE_LAYOUT
10002c35fcaSFred Isaman	tristate
101*e3074507STrond Myklebust	depends on NFS_V4_1
102*e3074507STrond Myklebust	default m
10302c35fcaSFred Isaman
104155e7524SFred Isamanconfig PNFS_BLOCK
1058cf1fb21SBoaz Harrosh	tristate
106*e3074507STrond Myklebust	depends on NFS_V4_1 && BLK_DEV_DM
1078cf1fb21SBoaz Harrosh	default m
108155e7524SFred Isaman
109c93407d0SBenny Halevyconfig PNFS_OBJLAYOUT
1108cf1fb21SBoaz Harrosh	tristate
111*e3074507STrond Myklebust	depends on NFS_V4_1 && SCSI_OSD_ULD
1128cf1fb21SBoaz Harrosh	default m
113c93407d0SBenny Halevy
114db8ac8baSWeston Andros Adamsonconfig NFS_V4_1_IMPLEMENTATION_ID_DOMAIN
115db8ac8baSWeston Andros Adamson	string "NFSv4.1 Implementation ID Domain"
116db8ac8baSWeston Andros Adamson	depends on NFS_V4_1
117db8ac8baSWeston Andros Adamson	default "kernel.org"
118db8ac8baSWeston Andros Adamson	help
119db8ac8baSWeston Andros Adamson	  This option defines the domain portion of the implementation ID that
120db8ac8baSWeston Andros Adamson	  may be sent in the NFS exchange_id operation.  The value must be in
121db8ac8baSWeston Andros Adamson	  the format of a DNS domain name and should be set to the DNS domain
122db8ac8baSWeston Andros Adamson	  name of the distribution.
123db8ac8baSWeston Andros Adamson	  If the NFS client is unchanged from the upstream kernel, this
124db8ac8baSWeston Andros Adamson	  option should be set to the default "kernel.org".
125db8ac8baSWeston Andros Adamson
12697afe47aSAlexey Dobriyanconfig ROOT_NFS
12797afe47aSAlexey Dobriyan	bool "Root file system on NFS"
12897afe47aSAlexey Dobriyan	depends on NFS_FS=y && IP_PNP
12997afe47aSAlexey Dobriyan	help
13097afe47aSAlexey Dobriyan	  If you want your system to mount its root file system via NFS,
13197afe47aSAlexey Dobriyan	  choose Y here.  This is common practice for managing systems
13297afe47aSAlexey Dobriyan	  without local permanent storage.  For details, read
133dc7a0816SJ. Bruce Fields	  <file:Documentation/filesystems/nfs/nfsroot.txt>.
13497afe47aSAlexey Dobriyan
13597afe47aSAlexey Dobriyan	  Most people say N here.
1363b9ce977SDavid Howells
1373b9ce977SDavid Howellsconfig NFS_FSCACHE
1384912002fSChristian Kujau	bool "Provide NFS client caching support"
1393b9ce977SDavid Howells	depends on NFS_FS=m && FSCACHE || NFS_FS=y && FSCACHE=y
1403b9ce977SDavid Howells	help
1413b9ce977SDavid Howells	  Say Y here if you want NFS data to be cached locally on disc through
1423b9ce977SDavid Howells	  the general filesystem cache manager
143c2e8139cSBryan Schumaker
144c2e8139cSBryan Schumakerconfig NFS_USE_LEGACY_DNS
145c2e8139cSBryan Schumaker	bool "Use the legacy NFS DNS resolver"
146c2e8139cSBryan Schumaker	depends on NFS_V4
147c2e8139cSBryan Schumaker	help
148c2e8139cSBryan Schumaker	  The kernel now provides a method for translating a host name into an
149c2e8139cSBryan Schumaker	  IP address.  Select Y here if you would rather use your own DNS
150c2e8139cSBryan Schumaker	  resolver script.
151c2e8139cSBryan Schumaker
152c2e8139cSBryan Schumaker	  If unsure, say N
153c2e8139cSBryan Schumaker
154c2e8139cSBryan Schumakerconfig NFS_USE_KERNEL_DNS
155c2e8139cSBryan Schumaker	bool
156c2e8139cSBryan Schumaker	depends on NFS_V4 && !NFS_USE_LEGACY_DNS
157c2e8139cSBryan Schumaker	select DNS_RESOLVER
158c2e8139cSBryan Schumaker	default y
159e27d359eSTrond Myklebust
160e27d359eSTrond Myklebustconfig NFS_DEBUG
161e27d359eSTrond Myklebust	bool
162e27d359eSTrond Myklebust	depends on NFS_FS && SUNRPC_DEBUG
163e27d359eSTrond Myklebust	select CRC32
164e27d359eSTrond Myklebust	default y
165