Commit Graph

125 Commits

Author SHA1 Message Date
perseant 127b043e58 Allow exports of LFS filesystems. 2005-04-27 20:32:41 +00:00
briggs 6089355b00 If -d (debug mode) is specified on the command line, include
LOG_PERROR in openlog() to send log output to stderr as well.
Suggested by Darrin Jewell.
2005-03-15 04:54:59 +00:00
wiz c10c98a855 Add -n and -N to usage. 2005-01-17 15:20:35 +00:00
wiz 70ac99c9d7 Add -N to SYNOPSIS; bump date for new -N flag; sort options. 2005-01-17 15:20:09 +00:00
thorpej f82a7cafe9 Don't exit if we can't read the exports file; we can still reload it
after a SIGHUP.
2005-01-14 16:16:28 +00:00
thorpej a25a23d58b Add a -N option that causes all exports to have "-noresvport -noresvmnt"
added to them.
2005-01-14 16:12:46 +00:00
itojun b95181fc9b NI_WITHSCOPEID was not picked up by IETF standardization process. 2004-11-16 05:59:32 +00:00
dsl f7571bacc2 Add (unsigned char) cast to ctype functions 2004-10-30 08:46:12 +00:00
christos 6bd1d6d4db Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
wiz 47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
wiz 625d4420e8 Sm off -> Sm on (Sm off...Sm off is not too smart). 2003-06-27 18:58:47 +00:00
itojun 646e6960b2 blank line 2003-05-16 14:53:55 +00:00
christos 03db714fce - zero out the sockaddr before passing it to the kernel.
- print the reason of the export failure.
2003-05-16 14:03:31 +00:00
lukem e7fa9814b3 clear errno before strtol() if we're going to test it for ERANGE afterwards 2003-04-17 02:41:21 +00:00
wiz 5a91827c81 through, not throught. 2003-01-06 12:29:48 +00:00
fvdl d4f83aa2bb Use a non-blocking SVC for TCP connections. 2002-11-08 00:14:50 +00:00
wiz e9df1e7eda Drop trailing whitespace. 2002-09-25 00:09:38 +00:00
christos 221d636e59 PR/15692: Love: specify ipsec policy for mountd. 2002-09-21 20:35:00 +00:00
wiz 59652c8572 Punctuation nits. 2002-01-19 03:38:36 +00:00
christos af0366bdde use struct uucred. 2001-11-29 21:23:38 +00:00
itojun c878544aa7 s/IPV6_BINDV6ONLY/IPV6_V6ONLY/ to follow changes made yesterday. 2001-10-16 01:51:26 +00:00
fvdl 17a51bfa67 Don't allow -mask for v6 addresses, otherwise there could be confusion
leading to incorrect masks being used. Problem pointed out by
Martin Blapp (mb@imp.ch) who ported the code to FreeBSD, fixed
differently for the time being.
2001-04-24 15:04:27 +00:00
wiz c177247450 Xref inet 4, not 5. 2001-04-03 11:27:01 +00:00
enami e1d0d284cf Free the storage allocated by fparseln when skipping an empty line. 2000-07-19 08:41:13 +00:00
itojun b141a4af1e always check getnameinfo errors. pass NI_WITHSCOPEID to
getnameinfo if declared.
2000-07-16 14:07:39 +00:00
itojun 55108de1d4 remove debug printf(). 2000-07-16 08:13:34 +00:00
itojun aa16ae57f1 fatal typo: need listen(tcp6sock). 2000-07-16 08:11:34 +00:00
enami 8ab9946e10 Substitute the cross reference to portmap(8) with rpcbind(8). 2000-07-03 10:06:24 +00:00
thorpej 3a1d089614 Add some extra instrumentation in the `debug' case. 2000-06-27 20:32:28 +00:00
enami bc066a6ce1 Avoid null pointer dereference; the `addrp' is NULL if a mount point
is default exported.
2000-06-21 02:48:31 +00:00
hubertf 25ad63a22f Tell people how to make the system re-read this file after changing it
Fixes PR 10398 by John Refling <refling@comet.lbl.gov>.
2000-06-20 00:54:04 +00:00
fvdl 95e20d99e4 Don't try to push v6 addresses into the kernel when they're not supported. 2000-06-19 23:44:16 +00:00
hannken a2c3edb415 Fix bad registration of mountd/tcp/v3 on port of mountd/udp/v3. 2000-06-16 11:34:55 +00:00
itojun 1a658c5964 avoid memory leak and duplicated free. 2000-06-13 01:08:43 +00:00
itojun dbfdf59395 mountd(8) supports scoped IPv6 address properly (exports(5) requires
scope identifier).  remove mention in BUGS section and add note on
scope identifier.
2000-06-12 15:40:35 +00:00
itojun 20b4e05ffe check scope id when we compare two AF_INET6 sockaddrs.
XXX still not sure if it is enough, so I do not remove warning from
documentation yet.
2000-06-10 08:01:07 +00:00
itojun 1ba6c2716a support IPv6 addresses start with hex digit or colon (like ::1).
in manpages, warn that scoped IPv6 addresses are not supported.
2000-06-10 07:04:13 +00:00
itojun 739ca10641 bark if too-big-masklen on "-network prefix/masklen". 2000-06-10 04:40:17 +00:00
fvdl 65c642a530 Make address handling in mountd more generic, to allow IPv6 mounting.
Add IPv6 example to exports manpage. Allow /prefix notation for
networks.
2000-06-09 00:03:31 +00:00
fvdl 548ea61860 Fix last arg to clnt_broadcast. 2000-06-03 14:20:49 +00:00
fvdl 376d66b867 Note that -kerb option is not implemented. 2000-02-17 09:05:07 +00:00
enami 700450f288 Backout revision 1.58-1.61; Since we currently only have a way to unexport
per mount point, the way ``try to export and unexport an unnecessary
mount point later'' may leave unwanted information in the kernel, and
doesn't work if a mount point is default exported or publically exported.

To fix the race condtion, we need another way.
2000-02-16 04:08:40 +00:00
dante 963f51342e Fix a bug which caused mountd to don't work at all 2000-02-16 01:27:14 +00:00
enami 2d2a3fa400 Fix path component parsing bug that I've introduced in previous commit. 2000-02-15 04:51:56 +00:00
enami 39fdef6641 If failed to export some mount point, unexport and try again. This is a
workaround to fix the bug that mountd fails to export the currently exported
mount point if it is exported everyone or only export option is changed.
2000-02-03 09:59:22 +00:00
sommerfeld 3fc2334c5d After some light testing, it worked for me, so...
Commit mrg's fix from pr8791: don't un-export filesystems which are just going
to be re-exported; instead, do additions, then deletions.
1999-11-14 14:37:16 +00:00
jdolecek 7ee18b2d1f Add ntfs to the list of exportable filesystem types, now that's it's actually
exportable
1999-09-10 16:20:22 +00:00
mjl fecb1c8c63 Reorder arguments to error message so the message actually makes
sense. Closes PR/ by Martin Berger <>.
1999-08-25 17:26:20 +00:00