summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nfsd
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Don't call daemon() and setup our signal handlers until after we checkalfred2001-03-251-41/+34
| | | | | | | | | | | | | and do the unregister/reregister work. Don't call syslog in the unregister/reregister code as we haven't called openlog() yet. Be a more conservative about accepting errno values from socket(2), only EPROTONOSUPPORT means that the kernel isn't supporting it something like INET6. The other possible errnos would be returned if there was a mistake in the socket(2) call so remove them from the list of "acceptable" return values.
* Disable ipv6 when getnetconfigent("udp6"/"tcp6") fails.alfred2001-03-251-1/+2
| | | | Submitted by: Martin Blapp <mb@imp.ch>
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+0
|
* mdoc(7) police: fixes to the previous revision:ru2001-03-201-2/+8
| | | | | | - fixed bad formatting - avoid using German - removed hard sentence break
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andalfred2001-03-192-287/+560
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-7/+7
|
* Don't use libutil now that setproctitle() is in libcbrian2000-09-022-3/+0
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Use libcrypto instead of libdes.markm2000-02-241-5/+5
|
* Thresh-out the nfs manual page references a bitdillon2000-01-131-0/+1
| | | | Reviewed by: Julian Elischer <julian@elischer.org>
* Give nfsd the ability to bind to specific IP addresses through the -hdillon1999-11-112-25/+93
| | | | | | | | | | option and add explicit option to bind to the wildcard address. The default is to bind to the wildcard address when no -h option has been specified and thus backwards compatibility is maintained. PR: kern/13049 Reviewed by: David Malone <dwmalone@maths.tcd.ie> Submitted by: Matt Dillon <dillon@freebsd.org>, David Malone <dwmalone@maths.tcd.ie>
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Add $Id$ to these manpages.nik1999-07-121-0/+1
| | | | Approved by: bde
* Update refs for KLD's and kldload.ghelmer1999-04-011-3/+3
| | | | Submitted by: Nathan Ahlstrom <nrahlstr@winternet.com>
OpenPOWER on IntegriCloud