summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nfsd
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Bah, I forgot to commit this part of the nfssvc() cleanup. Sorry folks.peter2002-07-251-4/+1
|
* use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.ume2002-07-221-3/+2
| | | | MFC after: 1 week
* Initialize sockbits variable with FD_ZERO, to avoid passing a fd_setkan2002-07-221-0/+1
| | | | | | | | | | | with random garbage in lower bits corresponding to stdin, stdout and stderr to select(2). This fixes the problem with nfsd sometimes getting stuck in a tight select(2) loop eating 100% CPU time. Reviewed by: iedowse Approved by: obrien
* The .Nm utilitycharnier2002-07-061-7/+13
|
* Fix spelling nit in error message.gordon2002-06-051-1/+1
|
* Make this compile and not segfault on ia64. ptr = strdup("foo"); ispeter2002-05-011-3/+4
| | | | | | fatal if the declaration of strdup() isn't in scope. The upper 32 bits of the pointer are lost since it defaults to returning "int". Fix some warnings while here, including trying to make gcc-3.1 happy.
* Fix problem in macro definition breaking compiles with -DDEBUG.pb2002-03-261-1/+1
| | | | | PR: bin/35773 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* When nfsd was started with only UDP servers, the master nfsd wouldiedowse2001-10-161-76/+106
| | | | | | | | | | | | | | | | | spin in a loop eating CPU time. This bug has existed since the TI-RPC import. The problem is that we should only enter the select loop if at least one TCP server was started. Fix this by having the master nfsd become a UDP server itself if there are no TCP servers. Also improve/correct the code for cleaning up slave nfsd processes and unregistering with rpcbind when the master nfsd exits. One issue that remains open is that if a slave nfsd dies, then all nfsds will shut down. This is because nfssvc() in the master nfsd returns 0 when the master nfsd receives a SIGCHLD. Submitted by: tmm
* Deal with nfs server module changes for autoloading.peter2001-09-201-9/+4
|
* Userland part of nfs client/server split and cleanup.peter2001-09-182-157/+5
|
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-4/+2
|
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
* mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).ru2001-07-061-2/+2
|
OpenPOWER on IntegriCloud