aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/nfsd
Commit message (Collapse)AuthorAgeFilesLines
* Revert r330897:Eitan Adler2018-03-291-3/+1
| | | | | | | | | | | | | | | | | | | | This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code. Revert with prejudice. This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes. Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes. Requested by: gjb (re) Notes: svn path=/stable/11/; revision=331722
* Partial merge of the SPDX changesEitan Adler2018-03-141-1/+3
| | | | | | | | | | These changes are incomplete but are making it difficult to determine what other changes can/should be merged. No objections from: pfg Notes: svn path=/stable/11/; revision=330897
* MFC: r321248Rick Macklem2017-07-271-19/+47
| | | | | | | | | | | | Update the nfsv4 man page to reflect recent changes to support 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. Notes: svn path=/stable/11/; revision=321598
* MFC: r309723Rick Macklem2016-12-221-25/+80
| | | | | | | | | | | | | | Patch the nfsd so that it doesn't register with rpcbind for an NFSv4 only 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. Notes: svn path=/stable/11/; revision=310432
* 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
* | | Document maxthreads and minthreads argumentsAlfred Perlstein2012-12-021-2/+13
| | | | | | | | | | | | Notes: svn path=/head/; revision=243785
* | | Don't allow minthreads > maxthreads.Alfred Perlstein2012-11-281-0/+4
| | | | | | | | | | | | | | | | | | | | | Suggested by: rmacklem Notes: svn path=/head/; revision=243645
* | | Fix typo.Alfred Perlstein2012-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | Pointed out by: marck Notes: svn path=/head/; revision=243644
* | | Autoconfigure nfsd threads based on ncpu.Alfred Perlstein2012-11-271-20/+97
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rick Macklem and I discussed the default number of nfsd threads and concluded that it is too low to perform adiquitely on today's hardware. We decided to auto tune the number of nfsds based on the number of cpus in the system. While I'm here I've also added: 1) ability to set the minthreads/maxthreads from userland. 2) ability to run nfsd in debug mode via the cli. Reviewed by: rmacklem MFC after: 2 weeks Notes: svn path=/head/; revision=243637
* | Fix typo in error when unable to create TCP socketEitan Adler2012-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | PR: bin/172490 Submitted by: bdrewery Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=241849
* | More -Wmissing-variable-declarations fixes.Ed Schouten2012-10-191-9/+9
|/ | | | | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'. Notes: svn path=/head/; revision=241737
* General mdoc(7) and typo fixes.Glen Barber2012-05-121-1/+1
| | | | | | | | | PR: 167776 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235317
* Remove superfluous paragraph macro.Joel Dahl2012-03-251-2/+0
| | | | Notes: svn path=/head/; revision=233455
* Remove duplicated header filesKevin Lo2011-06-241-1/+0
| | | | Notes: svn path=/head/; revision=223492
* Fix the nfsv4 man page to reflect the changes related toRick Macklem2011-05-151-27/+19
| | | | | | | | making the new NFS client and server the default. This is a content change. Notes: svn path=/head/; revision=221976
* Patch the mountd and nfsd man pages to reflect the recent changesRick Macklem2011-04-241-13/+7
| | | | | | | | done by r220980 to deprecate the -e option and add the -o option. This is a content change for both man pages. Notes: svn path=/head/; revision=220981
* This patch changes the default NFS server to the new one, which wasRick Macklem2011-04-241-9/+9
| | | | | | | | | | | referred to as the experimental server. It also adds a new command line option "-o" to both mountd and nfsd that forces them to use the old/regular NFS server. The "-e" option for these commands is now a no-op, since the new server is the default. I will be committing rc script and man changes soon. Discussed on freebsd-fs@. Notes: svn path=/head/; revision=220980
* Add stablerestart(5) to the See Also list for nfsd.8.Rick Macklem2011-04-191-1/+2
| | | | | | | | | | This is a content change. Suggested by: Jeremy Chadwick MFC after: 2 weeks Notes: svn path=/head/; revision=220875
* Revert r220809 since it put the entry in the wrong placeRick Macklem2011-04-191-2/+1
| | | | | | | in the list and didn't change the date. Notes: svn path=/head/; revision=220833
* Add stablerestart(5) to the See Also list for nfsd(8).Rick Macklem2011-04-191-1/+2
| | | | | | | | | | This is a content change. Suggested by: Jeremy Chadwick MFC after: 2 weeks Notes: svn path=/head/; revision=220809
* Modify the man pages to reflect the addition of a backupRick Macklem2011-04-102-31/+22
| | | | | | | | | | stable restart file, as done by r220510. This is a content change. MFC after: 2 weeks Notes: svn path=/head/; revision=220518
* Add support for a backup stable restart file to the nfsd,Rick Macklem2011-04-101-9/+110
| | | | | | | | | | | | | used for NFSv4 restart. This permits the nfsd to create the stable restart file as required and minimizes the risk of trouble if the file is lost. Suggested by: Tim Kientzle Reviewed by: jhb MFC after: 2 weeks Notes: svn path=/head/; revision=220510
* Save a copy of errno before invoking syslog() if accept() or select() fail.John Baldwin2011-02-171-6/+9
| | | | | | | | | | syslog() can trash the errno value causing nfsd to exit for non-fatal errors like ECONNABORTED from accept(). MFC after: 1 week Notes: svn path=/head/; revision=218777