summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nfsd
Commit message (Collapse)AuthorAgeFilesLines
* Updated dependenciessjg2013-02-161-2/+0
|
* Sync with HEAD.obrien2013-02-083-24/+118
|\
| * Attempt to clarify that for ZFS, all file systems underrmacklem2012-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
| * Post r243965 the nfsd daemon will not start up for kernelsrmacklem2012-12-191-1/+1
| | | | | | | | | | | | | | | | built without "options INET6". This patch fixes the problem. Reported by: avg Tested by: avg MFC after: 2 weeks
| * Document maxthreads and minthreads argumentsalfred2012-12-021-2/+13
| |
| * Don't allow minthreads > maxthreads.alfred2012-11-281-0/+4
| | | | | | | | Suggested by: rmacklem
| * Fix typo.alfred2012-11-281-1/+1
| | | | | | | | Pointed out by: marck
| * Autoconfigure nfsd threads based on ncpu.alfred2012-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
| |
| \
*-. \ Sync from headsjg2012-11-041-10/+10
|\ \ \ | | |/ | |/|
| * | Fix typo in error when unable to create TCP socketeadler2012-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | PR: bin/172490 Submitted by: bdrewery Approved by: cperciva MFC after: 3 days
| * | More -Wmissing-variable-declarations fixes.ed2012-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'.
* | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+22
|/ | | | Requested by: Simon Gerraty <sjg@juniper.net>
* General mdoc(7) and typo fixes.gjb2012-05-121-1/+1
| | | | | | PR: 167776 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* Remove superfluous paragraph macro.joel2012-03-251-2/+0
|
* Remove duplicated header fileskevlo2011-06-241-1/+0
|
* Fix the nfsv4 man page to reflect the changes related tormacklem2011-05-151-27/+19
| | | | | making the new NFS client and server the default. This is a content change.
* Patch the mountd and nfsd man pages to reflect the recent changesrmacklem2011-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.
* This patch changes the default NFS server to the new one, which wasrmacklem2011-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@.
* Add stablerestart(5) to the See Also list for nfsd.8.rmacklem2011-04-191-1/+2
| | | | | | | This is a content change. Suggested by: Jeremy Chadwick MFC after: 2 weeks
* Revert r220809 since it put the entry in the wrong placermacklem2011-04-191-2/+1
| | | | in the list and didn't change the date.
* Add stablerestart(5) to the See Also list for nfsd(8).rmacklem2011-04-191-1/+2
| | | | | | | This is a content change. Suggested by: Jeremy Chadwick MFC after: 2 weeks
* Modify the man pages to reflect the addition of a backuprmacklem2011-04-102-31/+22
| | | | | | | stable restart file, as done by r220510. This is a content change. MFC after: 2 weeks
* Add support for a backup stable restart file to the nfsd,rmacklem2011-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
* Save a copy of errno before invoking syslog() if accept() or select() fail.jhb2011-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
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-161-1/+1
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Fix typos and spelling mistakes.joel2010-08-061-1/+1
|
* mdoc: Garbage collect unused/unneeded macrosuqs2010-05-272-2/+2
|
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-2/+0
|
* ANSIfy almost all applications that use WARNS=6.ed2009-12-291-3/+3
| | | | | | | I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application.
* Yet another cosmetic fix.trasz2009-12-031-3/+3
|
* Cosmetical fixes.trasz2009-12-031-11/+11
|
* Cosmetical fixes.trasz2009-12-031-23/+21
|
* Use our canonical .Dd format.brueffer2009-11-021-1/+1
| | | | Submitted by: Ulrich Spoerlein
* Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementationdfr2009-06-241-20/+19
| | | | and will be removed.
* Update the content of the nfsv4.4 man page to reflect the finalrmacklem2009-06-121-42/+56
| | | | | | | | | choice of variable names for rc.conf and option name for the experimental server. Also replace the inaccurate description of the nfsv4 root lines in /etc/exports, mostly with a reference to exports(5). Approved by: kib (mentor)
* Re-format the nfsv4.4 man page so that all sentences start on armacklem2009-06-031-10/+20
| | | | | | new line. Approved by: kib (mentor)
* Change the "-4" argument for nfsd and mountd to "-e" to avoidrmacklem2009-05-282-7/+7
| | | | | | | confusion, since it does not refer to IPv4 nor NFSv4, but to running the experimental server instead of the regular one. Approved by: kib (mentor)
* Modify nfsd.c to add support for the experimental nfs server.rmacklem2009-05-245-29/+544
| | | | | | | | | | | | This includes the addition of a new flag "-4" that will force use of the experimental server with nfsv4 support in it. This commit also adds two new man pages to the repository that are NFSv4 specific. One describes the file used by the server to restart nfsv4 services safely. The other is a brief overview of nfsv4 and its setup. Reviewed by: dfr Approved by: kib (mentor)
* Implement support for RPCSEC_GSS authentication to both the NFS clientdfr2008-11-031-34/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and server. This replaces the RPC implementation of the NFS client and server with the newer RPC implementation originally developed (actually ported from the userland sunrpc code) to support the NFS Lock Manager. I have tested this code extensively and I believe it is stable and that performance is at least equal to the legacy RPC implementation. The NFS code currently contains support for both the new RPC implementation and the older legacy implementation inherited from the original NFS codebase. The default is to use the new implementation - add the NFS_LEGACYRPC option to fall back to the old code. When I merge this support back to RELENG_7, I will probably change this so that users have to 'opt in' to get the new code. To use RPCSEC_GSS on either client or server, you must build a kernel which includes the KGSSAPI option and the crypto device. On the userland side, you must build at least a new libc, mountd, mount_nfs and gssd. You must install new versions of /etc/rc.d/gssd and /etc/rc.d/nfsd and add 'gssd_enable=YES' to /etc/rc.conf. As long as gssd is running, you should be able to mount an NFS filesystem from a server that requires RPCSEC_GSS authentication. The mount itself can happen without any kerberos credentials but all access to the filesystem will be denied unless the accessing user has a valid ticket file in the standard place (/tmp/krb5cc_<uid>). There is currently no support for situations where the ticket file is in a different place, such as when the user logged in via SSH and has delegated credentials from that login. This restriction is also present in Solaris and Linux. In theory, we could improve this in future, possibly using Brooks Davis' implementation of variant symlinks. Supporting RPCSEC_GSS on a server is nearly as simple. You must create service creds for the server in the form 'nfs/<fqdn>@<REALM>' and install them in /etc/krb5.keytab. The standard heimdal utility ktutil makes this fairly easy. After the service creds have been created, you can add a '-sec=krb5' option to /etc/exports and restart both mountd and nfsd. The only other difference an administrator should notice is that nfsd doesn't fork to create service threads any more. In normal operation, there will be two nfsd processes, one in userland waiting for TCP connections and one in the kernel handling requests. The latter process will create as many kthreads as required - these should be visible via 'top -H'. The code has some support for varying the number of service threads according to load but initially at least, nfsd uses a fixed number of threads according to the value supplied to its '-n' option. Sponsored by: Isilon Systems MFC after: 1 month
* Previous revision was broken on SPARC, fix it by using more appropriate type.delphij2005-12-211-1/+1
| | | | | Reported by: tindebox Pointy hat to: delphij
* Use size_t for length.delphij2005-12-211-1/+2
|
* Bump the default maximum on nfsd processes from 20 to 256. Real-worldrwatson2005-01-231-1/+1
| | | | | | | measurements suggest that higher degrees of parallelism for large numbers of clients help performance substantially. Submitted by: Eric Anderson <anderson at centtech dot com>
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* ANSI'fy nfsd(8) and some minor changes to make it WARNS=6 clean.delphij2004-11-062-10/+6
| | | | | | | | | | This commit does not affect the code generated, as proven by md5'ing resulting binaries. Bump WARNS accordingly. Compiled on: sparc64, ia64, i386 Reviewed by: alfred (but blame me if anything goes wrong :-)
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareimp2004-08-072-8/+0
| | | | (with permission of addtional copyright holders where appropriate)
* Mechanically kill hard sentence breaks.ru2004-07-021-4/+8
|
* Add a cross reference to exports(5). While exports is not directlysimon2004-03-301-0/+1
| | | | | | | | | tied to nfsd(8), exports is the configuration file users will most likely need to configure when dealing with a NFS server. Submitted by: Florian Hars <hars@bik-gmbh.de> PR: docs/64714 MFC after: 3 days
* Problem:rwatson2004-01-111-0/+8
| | | | | | | | | | | | | | | | | When an NFS server is port-scanned nfsd sometimes exits. This has happened 3 times the last few weeks. Nfsd has been written to exit when accept(2) fails. Unfortunately accept can sometimes make a "normal" return with errno ECONNABORTED and in this case nfsd exits prematurely. Solution: Check for ECONNABORTED (and also EINTR, since nfsd uses signals) and continue. Submitted by: Bjoern Groenvall <bg@sics.se> PR: 61084
* style.Makefile(5)obrien2003-04-041-1/+2
|
* Update manpage to match the code, vfsload() is not usedmux2002-08-111-4/+2
| | | | here since some time, kldload() is used instead.
OpenPOWER on IntegriCloud