summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
Commit message (Collapse)AuthorAgeFilesLines
* Also do not send junk mount arguments when removing exports.phk2004-12-111-0/+1
|
* Pass an array of gid_t rather than an array of int to getgroups().stefanf2004-10-021-2/+3
| | | | PR: 56646
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareimp2004-08-075-20/+1
| | | | (with permission of addtional copyright holders where appropriate)
* Markup nits.ru2004-06-041-2/+2
|
* Correct typo in the last revision.ceri2004-03-271-1/+1
|
* Note that only one webnfs share is allowed per NFS server.ceri2004-03-221-0/+3
| | | | | | | PR: docs/45371 Submitted by: Mattias Pantzare <pantzer@ludd.luth.se>, Matthew D. Fuller <fullermd@over-yonder.net> MFC after: 2 days
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)markm2004-03-051-1/+1
| | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64
* Add a new option to mountd(8), -p <port>. This allows the user to specifybms2004-03-042-7/+76
| | | | | | | a known port for use in firewall rulesets; otherwise the port is chosen at run-time by bindresvport(). MFC after: 1 week
* Be consistent in the EXAMPLES formatting.obrien2004-01-011-0/+1
|
* Rename the 'log' variable rather than -fno-builtin-logpeter2003-10-302-8/+7
|
* Use -fno-builtin-log. Fix svc_sendreply() missing required casts.peter2003-10-262-13/+17
| | | | It is now WARNS=2 clean again.
* When reporting errors binding IPv6 TCP sockets, don't call them UDPrwatson2003-07-171-3/+3
| | | | | | | | sockets in the printf. Fix two minor co-located whitespace glitches. Product of: France
* style.Makefile(5)obrien2003-04-041-1/+2
|
* Implement nonblocking tpc-connections. rpcgen -m does stillmbr2003-01-161-2/+7
| | | | | | | | produce backcompatible code. Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
* english(4) police.schweikh2002-12-271-1/+1
|
* Uniformly refer to a file system as "file system".ru2002-12-122-23/+23
| | | | Approved by: re
* s/rpc.mountd/mountd/charnier2002-10-161-5/+6
| | | | | Add FBSDID Reorder #if/#endif around sccsid to conform style(9)
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-251-2/+3
|
* Kerberised NFS has never (as far as I can tell) worked outsidemarkm2002-09-201-12/+2
| | | | | | BSD 4.4. Nuke mention of Kerberos from the documentation here. MFC after: 1 week
* Update manpage to match the code, vfsload() isn't usedmux2002-08-111-4/+2
| | | | here since some time, kldload() is used instead.
* use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.ume2002-07-221-2/+2
| | | | MFC after: 1 week
* Try to give a more descriptive error message for the pilot error ofjoerg2002-07-182-25/+81
| | | | | | | | | | | | | | | | | | | | | | | | attempting to export the non-root of a filesystem with -alldirs. This pilot error seems to be very common, and the "could not remount" error message doesn't give much hints about the real reason. See the old PR below for an example. While i was at it, make it possible to entirely omit the often annoying error message in that case by specifying the "quiet" exports flag. This allows to specify something like /cdrom -alldirs,ro,quiet <where to export to> which will silently fail if nothing is mounted under /cdrom, but do the rigth thing as soon as you mount something. While doing this, i've put the embedded example in the exports(5) man page into a subsection of its own as it ought to be. Thanks for Paul Southworth for reminding me about this problem. PR: bin/4448 MFC after: 1 month
* If an RPC fails, try a shorter reply in case the fault lies with thealfred2002-07-151-10/+39
| | | | | | | size of the response. PR: misc/26320 MFC After: 2 weeks
* The .Nm utilitycharnier2002-07-061-2/+3
|
* Remove old pre-TIRPC code for getting transport handles. The code thatalfred2002-06-251-5/+0
| | | | follows spams over the contents of them making the removed code useless.
* more file system > filesystemtrhodes2002-05-162-4/+4
|
* Use fgetln to remove the static limit on the length of lines iniedowse2002-05-141-14/+15
| | | | | | /etc/exports. Oversized lines were unlikely due to the large 10k limit, but any found would cause mountd to exit with an error. Also fix one or two compiler warnings.
* o __P removedimp2002-03-211-41/+41
| | | | o main prototype removed
* Remove 'register' keyword.obrien2002-03-201-1/+1
| | | | | | It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?)
* Chase sysctl name.dd2002-03-111-1/+1
| | | | Submitted by: Christopher Sharp <christopher_sharp@web.de>
* Introduce a version field to `struct xucred' in place of one of thedd2002-02-271-1/+2
| | | | | | | | | | | | spares (the size of the field was changed from u_short to u_int to reflect what it really ends up being). Accordingly, change users of xucred to set and check this field as appropriate. In the kernel, this is being done inside the new cru2x() routine which takes a `struct ucred' and fills out a `struct xucred' according to the former. This also has the pleasant sideaffect of removing some duplicate code. Reviewed by: rwatson
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* Deal with module name changes and autoloading.peter2001-09-201-15/+8
|
* Userland part of nfs client/server split and cleanup.peter2001-09-181-22/+5
|
* Silence non-constant format string warnings by marking functionskris2001-08-191-1/+1
| | | | | | | as __printflike()/__printf0like(), adding const, or adding missing "%s" format strings, as appropriate. MFC after: 2 weeks
* mdoc(7) police: join split punctuation to macro calls.ru2001-08-101-2/+2
|
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
* mdoc(7) police: cosmetics.ru2001-07-041-1/+2
|
* Document continuation line support.dd2001-07-021-0/+2
| | | | | PR: 8479 Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
* Correct handling of continuation lines. Instead of treating thedd2001-07-021-0/+4
| | | | | | | | backslash as nothing, treat it like a space so that adjacent lines aren't glued together. PR: 8479 Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
* Correct cross-reference:sobomax2001-06-071-1/+1
| | | | | | portmap.8 --> rpcbind.8 Submitted by: .Xr testing script
* - VFS_SET(msdos) -> VFS_SET(msdosfs)ru2001-06-011-1/+1
| | | | | | - msdos.ko -> msdosfs.ko - mount_msdos(8) -> mount_msdosfs(8) - "msdos" -> "msdosfs" compatibility glue in mount(8)
* Remove vestiges of MFS.ru2001-06-011-1/+0
|
* Remove MFSphk2001-05-291-4/+1
|
* Since the netexport struct was centralised to 'struct mount',iedowse2001-05-291-3/+4
| | | | | | | | | | | | | attempting to remove nonexistant exports with MNT_DELEXPORT returns an error; before this change it always succeeded. This caused mountd(8) to log "can't delete exports for /whatever" warnings. Change the error code from EINVAL to a more specific ENOENT, and make mountd ignore this error when deleting the export list. I could have just restored the previous behaviour of returning success, but I think an error return is a useful diagnostic. Reviewed by: phk
* - sys/n[tw]fs moved to sys/fs/n[tw]fsru2001-05-261-1/+1
| | | | - /usr/include/n[tw]fs moved to /usr/include/fs/n[tw]fs
* - sys/msdosfs moved to sys/fs/msdosfsru2001-05-251-1/+1
| | | | | - msdos.ko renamed to msdosfs.ko - /usr/include/msdosfs moved to /usr/include/fs/msdosfs
* Reinstate one more old bugfix that got lost in the tirpc commit:iedowse2001-04-231-15/+20
| | | | | | | always look up -network and -mask addresses numerically before trying getnetbyname(). Without this, we may end up attempting DNS queries on silly names such as "127.0.0.0.my-domain.com". See the commit log from revisions 1.21 and 1.20 for further details.
* When exporting a directory that is not a mountpoint, mountd repeatedlyiedowse2001-04-221-0/+8
| | | | | | | | | | | | | removes the last path component until the mount() succeeds. However, the code never checks if it has passed the mountpoint, so in some cases where the mount() never succeeds, it can end up applying the flags from a mounted filesystem to the underlying one. Add a sanity check to the code which removes the last path component: test that the fsid associated with the new path is the same as that of the old one. PR: bin/7872
* The introduction of IPv6 support from NetBSD's mountd invalidatediedowse2001-04-211-243/+207
| | | | | | | | | | | | | | | | | | | | | | | | a number of assumptions related to the parsing of options in /etc/exports, and missed a few necessary new error checks. The main problems related to netmasks: an IPv6 network address missing a netmask would result in the filesystem being exported to the whole IPv6 world, non-continuous netmasks would be made continuous without any warnings, and nothing prevented you specifying an IPv4 mask with an IPv6 address. This change addresses these issues. As a side-effect we now store netmasks in sockaddr structs (this matches the kernel interface, and is closer to the way it used to be). Add a flag OP_HAVEMASK to keep track of whether or not we have successfully got a mask from any source. Replace some mask-related helper functions with versions that use the sockaddr-based masks. Also tidy up get_net() and fix the code that interprets IPv4 partial networks such as "127.1" as network rather than host addresses. Properly zero out some structures that were ending up partially containing junk from the stack, fix a few formatting issues, and add a comment noting some assumptions about export arguments.
OpenPOWER on IntegriCloud