summaryrefslogtreecommitdiff
path: root/usr.sbin/nfsd
Commit message (Collapse)AuthorAgeFilesLines
* MFC r344192 (by sef): Add support for a virtual hostname to nfsdAlexander Motin2019-04-292-9/+25
| | | | | | | | | | | | Specifically, this allows (via "-V vhostname") telling nfsd what principal to use, instead of the hostname. This is used at iXsystems for fail-over in HA systems. Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D19191 Notes: svn path=/stable/12/; revision=346910
* MFC r340111:Baptiste Daroussin2018-12-061-52/+19
| | | | | | | | | | | | | | nfsd: Factorize code Factorize code by using struct sockaddr_storage to handle both ipv6 and ipv4 Discussed with: rmacklem Reviewed by: manu Sponsored by: Gandi.net Differential Revision: https://reviews.freebsd.org/D13223 Notes: svn path=/stable/12/; revision=341621
* Fix a typo plus add a couple of sentences to pnfsserver.4.Rick Macklem2018-08-091-2/+11
| | | | | | | This is a content change. Notes: svn path=/head/; revision=337509
* Add a reference to pnfsserver.4 to the nfsd.8 man page.Rick Macklem2018-08-051-1/+2
| | | | | | | This is a content change. Notes: svn path=/head/; revision=337363
* Update the pnfs.4 man page to reference the pnfsserver.4 man page.Rick Macklem2018-08-051-5/+3
| | | | | | | This is a content change. Notes: svn path=/head/; revision=337362
* Add pnfsserver.4 to the Makefile for nfsd.Rick Macklem2018-08-051-1/+1
| | | | Notes: svn path=/head/; revision=337361
* Add a man page that describes the setup of a pNFS service.Rick Macklem2018-08-051-0/+405
| | | | | | | This is a content change. Notes: svn path=/head/; revision=337360
* Update nfsd.8 for support of IPv6 addresses for hosts in the "-p" option.Rick Macklem2018-07-271-7/+14
| | | | | | | | | | r336795 adds support for handling of IPv6 addresses returned by getaddrinfo(3) for DS hostnames. This updates the man page for this change. This is a content change. Notes: svn path=/head/; revision=336798
* Add support for IPv6 addresses to the pNFS "-p" option.Rick Macklem2018-07-271-11/+46
| | | | | | | | | | | | | | | | This patch adds code to handle IPv6 addresses returned by getaddrinfo() for the host entries in the "-p" command line argument. If the IPv6 address is a link local address, only use it if it is the only address for the host. This is done since there is no way to know if the NFSv4.1 pNFS client is in the same scope zone as the MDS. inet_ntop() is used for the IPv6 address translation, since the client will have no use for the scope zone suffix and inet_ntop() does not put this in the address string. Discussed with: bu7cher@yandex.ru Notes: svn path=/head/; revision=336795
* Update the pnfs(4) man page.Rick Macklem2018-07-101-5/+19
| | | | | | | This is a content change. Notes: svn path=/head/; revision=336183
* Document the "#mds_path" suffix for the "-p" command line option.Rick Macklem2018-07-021-2/+32
| | | | | | | | | | | | | r335871 added support for an optional suffix of "#mds_path" that can be applied to each entry in the "-p" option argument. This specifies that the DS should be used to store files for the file system on the MDS at "mds_path". This patch documents this optional suffix. This is a content change. Notes: svn path=/head/; revision=335872
* Add an optional feature to the pNFS server.Rick Macklem2018-07-021-1/+35
| | | | | | | | | | | | | | | | | | | Without this patch, the pNFS server distributes the data storage files across all of the specified DSs. A tester noted that it would be nice if a system administrator could control which DSs are used to store the file data for a given exported MDS file system. This patch adds an optional suffix for each entry in the "-p" option argument that specifies "store file data for this MDS file system" in this DS. The patch should only affect sites using the pNFS server (specified via the "-p" command line option for nfsd. The interface between the nfsd and the kernel has changed with this patch, so anyone using the "-p" option needs to rebuild their nfsd from sources with this patch applied to them. Discussed with: james.rose@framestore.com Notes: svn path=/head/; revision=335871
* Add a safety belt assignment to the nfsd for when "-p" isn't specified.Rick Macklem2018-06-301-0/+2
| | | | | | | | | | | | The kernel code assumes that nfsdargs.addr == NULL and nfsdargs.addrlen == 0 when there is no "-p" argument used for starting the nfsd. This small patch ensures this is the case. In practice, I believe this always happened, since "nfsdargs" was the last element on the stack for "main()", but this little patch ensures it will be the case. Spotted by inspection while adding a new optional field for "-p". Notes: svn path=/head/; revision=335814
* Add a new man page that briefly describes the pNFS variant of the NFSv4.1Rick Macklem2018-06-142-1/+188
| | | | | | | | | protocol. This is a content change. Notes: svn path=/head/; revision=335175
* Document the "-p" and "-m" options added to nfsd.c by r335172.Rick Macklem2018-06-141-3/+77
| | | | | | | This is a content change. Notes: svn path=/head/; revision=335174
* Add the "-p" and "-m" options to nfsd.c for the pNFS service.Rick Macklem2018-06-141-18/+168
| | | | | | | | | | | | The "-p" option specifies that the nfsd should run a pNFS service instead of a regular NFS service. The "-m" option is only meaningful when used with "-p" to specify that mirroring on the DSs should be done and on how many of them. This change requires the kernel changes committed as r334930. The man page update will be committed as a separate commit soon. Notes: svn path=/head/; revision=335172
* userland: Fix several typos and minor errorsEitan Adler2017-12-271-2/+2
| | | | | | | | | | | - duplicate words - typos - references to old versions of FreeBSD Reviewed by: imp, benno Notes: svn path=/head/; revision=327230
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Update the nfsv4 man page to reflect recent changes to supportRick Macklem2017-07-191-19/+47
| | | | | | | | | | | | | | the newer RFCs (5661 and 7530). The main man changes are for the case of "numbers in strings" for user/groups that RFC7530 allows and avoids use of nfsuserd(8). This is a content change. Reviewed by: trasz (earlier version) MFC after: 1 week Notes: svn path=/head/; revision=321248
* Renumber copyright clause 4Warner Losh2017-02-282-2/+2
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Patch the nfsd so that it doesn't register with rpcbind for an NFSv4 onlyRick Macklem2016-12-081-25/+80
| | | | | | | | | | | | | | | | | | server. This patch uses the sysctl vfs.nfsd.server_min_nfsvers to determine if/what versions of NFS service should be registered with rpcbind. For NFSv4 only, it does not register at all, since NFSv4 always uses 2049 and does not require rpcbind. For NFSv3 minimum, it registers NFSv3 but not NFSv2. Tested by: jmader2@gmu.edu Submitted by: jmader2@gmu.edu (earlier version) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D8696 Notes: svn path=/head/; revision=309723
* Cleanup unnecessary semicolons from utilities we all love.Pedro F. Giffuni2016-04-151-1/+1
| | | | Notes: svn path=/head/; revision=298089
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-129/+68
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-1/+19
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ Merge head from 7/28Simon J. Gerraty2014-08-191-2/+2
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | Merge from headSimon J. Gerraty2013-09-051-1/+22
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ \ sync from headSimon J. Gerraty2013-04-121-68/+55
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | Sync with HEAD.David E. O'Brien2013-02-083-24/+118
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ \ \ \ Sync from headSimon J. Gerraty2012-11-041-10/+10
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | | Remove oldnfs remnants from nfsd(8).Edward Tomasz Napierala2015-04-302-120/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=282272
* | | | | | | | Remove some oldnfs remnants.Edward Tomasz Napierala2015-04-181-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2287 Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=281691
* | | | | | | | Remove hard limits on number of accepting NFS connections.Alexander Motin2015-04-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Limits of 5 connections set long ago creates problems for SPEC benchmark. Make the NFS follow system-wide maximum. MFC after: 1 week Notes: svn path=/head/; revision=281199
* | | | | | | | Fix markup for minthreads and maxthreads.Xin LI2015-01-011-7/+7
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 196403 MFC after: 2 weeks Notes: svn path=/head/; revision=276495
* | | | | | | Document the use of the vfs.nfsd sysctls that control the size ofRick Macklem2014-08-101-1/+19
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the NFS server's DRC for TCP. This is a content change. MFC after: 1 week Notes: svn path=/head/; revision=269788
* | | | | | r243637 changed the default number of nfsd threads created,Rick Macklem2014-07-191-2/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but the man page did not reflect this. This is a content change. Reported by: bde MFC after: 2 weeks Notes: svn path=/head/; revision=268866
* | | | | Document the fact that an NFSv4 mount uses the host uuid to uniquelyRick Macklem2013-07-011-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identify the client to the server. As such, NFSv4 mounts will break if host_enable="NO" is specified. This is a content change. Suggested by: lars@netapp.com MFC after: 3 days Notes: svn path=/head/; revision=252483
* | | | | Document the fact that an NFSv4 mount against a volume on the same hostRick Macklem2013-05-011-1/+8
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | can result in a hung NFS server and is not recommended. This is a content change. MFC after: 2 weeks Notes: svn path=/head/; revision=250162
* | | | Simplify r243637 and make sure that nfsdargs.{min,max}threads are always setXin LI2013-02-141-20/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to meaningful value: - When nfsdcnt is set, it dictates all values; - Otherwise, nfsdargs.minthreads is set to user specified value, or the automatically detected value if there is no one specified; nfsdargs.maxthreads is set to the user specified value, or the value of nfsdargs.minthreads if there is no one specified; when it is smaller than nfsdargs.minthreads, the latter's value is always used. MFC after: 2 weeks Notes: svn path=/head/; revision=246781
* | | | Abstract out setting of nfsdcnt and consistently use MAXNFSDCNT when theXin LI2013-02-141-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | proposed value is too high and DEFNFSDCNT when proposed value is too low. MFC after: 2 weeks Notes: svn path=/head/; revision=246780
* | | | Use static for all functions that do not need to be exported.Xin LI2013-02-141-27/+27
| |_|/ |/| | | | | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=246778
* | | Attempt to clarify that for ZFS, all file systems underRick Macklem2012-12-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the NFSv4 root must be exported. This is because ZFS checks exports itself. This is a content change. MFC after: 2 weeks Notes: svn path=/head/; revision=244690
* | | Post r243965 the nfsd daemon will not start up for kernelsRick Macklem2012-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | built without "options INET6". This patch fixes the problem. Reported by: avg Tested by: avg MFC after: 2 weeks Notes: svn path=/head/; revision=244447