Commit Graph

46 Commits

Author SHA1 Message Date
jdolecek debb6d80a3 make the code includable into other programs:
* make static all symbols which do not need to be exported
* rename main() to mount_FOO()
* new main() now just calls mount_FOO(), main() is only compiled in if
  MOUNT_NOMAIN is not defined
* a_gid(), a_uid() and a_mask() were put into ../mount/fattr.[ch], local
  versions removed
2000-10-30 20:56:57 +00:00
itojun 36abc851d1 correct hard-to-understand indentation. 2000-07-16 14:06:08 +00:00
bjh21 df36d174d2 Remove spurious colon from error message; clnt_pcreateerror provides one. 2000-06-26 21:53:34 +00:00
fvdl 27ddcb91ce Handle unsupported protocols (i.e. no v6 support on the other side)
a tad better.
2000-06-19 23:19:20 +00:00
fvdl 43ffff9e2c Update to be more address-family independent, and adapt to TI-RPC
interface.

XXX this code needs a cleanup, especially the retry-loop.
2000-06-09 00:06:36 +00:00
mjl 2ecd102f59 Make usage message match actual options. 1999-11-21 00:53:58 +00:00
soren 5db156a589 NFS over TCP is more common these days. 1999-10-07 23:50:58 +00:00
perseant 8847804fc3 Regularize error reporting of mount_* commands for failure of mount(2)
to the form:

	mount_xxx: dev on dir: reason for failure
1999-06-25 19:28:35 +00:00
mycroft f6590b22cd Clean up SYNOPSIS formatting. 1999-03-07 11:02:05 +00:00
msaitoh 62b7296fa5 Eliminate unused period. 1999-02-01 23:43:43 +00:00
garbled 48ff43e0e2 Add an EXAMPLES and ERRORS section to the manpage to partially fix
PR# 6121 by Charles M. Hannum.  Someone else will have to do the
fixing to mountd's diagnostics.
1999-01-12 08:55:58 +00:00
tron c31c2a9d69 Get protocol type for "pmap_getport()" from variable "nfsproto" instead of
checking the socket type.
1998-05-14 07:44:09 +00:00
kleink f0d4c4d645 No need to include <sys/socketvar.h>. 1998-04-01 16:27:05 +00:00
fvdl e5bc90f40c Merge with Lite2 + local changes 1998-03-01 02:20:01 +00:00
perry 34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
perry 96bf04cc4d change <strings.h> to <string.h> to fix compiler warning 1998-02-03 03:32:43 +00:00
fvdl c5f8e0d133 Implement -X option for 32 <-> 64 bit translation of directory cookies
for v3 mounts. Should rarely be needed (i.e. servers actually
returning information in the upper 32 bits, and programs not
being able to deal with that (emulated binaries; native NetBSD
binaries will never need this)).
1997-10-19 01:24:47 +00:00
christos e230a48b57 CFLAGS->CPPFLAGS 1997-10-10 19:47:50 +00:00
lukem 8a3061d800 back to using mount/getmntopts.c since mount is now post lite-2 1997-09-16 12:31:11 +00:00
lukem 3cb80143db * update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
* deprecate register
* bzero() -> memset()
1997-09-15 05:31:35 +00:00
jtk 3adb948b12 fix typo: PRC should have been RPC 1997-05-12 01:52:27 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
fvdl 983e7c0af4 Use a reserved port by default. The -P option is now obsolete, but
kept for backward compatibility. The -p option was added to explicitly
NOT use reserved ports.
1997-03-23 20:59:56 +00:00
tls 2ab9ccf105 it's a shame, but since we have no kernel support for kerb NFS (which may or may not be worth having, in the form available to us) this is how I'm closing PR #2469. 1997-01-09 09:43:51 +00:00
mikel 957e75132e Fix typo; PR misc/2956. Also cleaned up .Nm usage. 1996-11-26 06:44:36 +00:00
christos f95a0b9a4d Fix PR/2884: Change default for nfs mounts to not do a connect on the
socket. Add option -C to force a connected mount. Now option -c is still
there, but it is the default. Maybe amd should be changed similarly.
1996-10-27 21:18:03 +00:00
cgd fa1bf894fd recognize the 'nocoredump' mount option as a standard option (supported by
all file system types).
1996-10-23 22:51:08 +00:00
fvdl ea35d11c99 Be stricter when checking NQNFS and version combinations. Incorrect combinations
of these flags were previously possible when falling back from a v3 -> v2
mount, and could confuse the system.
1996-05-23 22:52:49 +00:00
jtc 6397db2ddd Add const qualifier to mopts table 1996-04-13 01:30:59 +00:00
mycroft b1137d80f7 This accompanies getmntopts.c. 1996-02-18 23:12:23 +00:00
fvdl 4b65d872bd Temporarily use own getmntopts.c for mount_nfs (the Lite2 version). The other
mount_* commands need to be upgraded to use this version too soon.
1996-02-18 12:01:06 +00:00
fvdl f916611f33 Bring in NFSv3 code by Rick Macklem (from Lite2). 1996-02-18 11:58:24 +00:00
mycroft b581b3e588 Use inet_aton(), not inet_addr(). 1995-05-21 15:17:13 +00:00
jtc ae0b9c2010 KERNEL -> _KERNEL 1995-03-28 17:18:59 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
cgd cc7492d622 fix bug 547. it looks like somebody mis-pasted. kirk has been informed. 1994-12-29 00:48:42 +00:00
cgd 06e2955ff1 specify man pages the new way. 1994-12-22 10:44:04 +00:00
mycroft ea7b5d4ec6 Eliminate uses of some obsolete functions. 1994-09-23 14:26:58 +00:00
mycroft fd2946c6f4 Get the root filehandle using the same transport as the mount itself. From
Ken Hornstein.
1994-09-17 05:27:11 +00:00
mycroft 1d38d39d26 Fix incorrect error messages. 1994-09-05 02:21:06 +00:00
brezak aeb9226e91 Use default realm instead of constant 1994-07-27 03:16:06 +00:00
brezak 76ebad249f If in a kerberos environment; build -DKERBEROS 1994-07-27 03:15:31 +00:00
pk 7950668773 Make numerical IP addresses work (fix from Christos Zoulas). 1994-06-24 12:04:53 +00:00
mycroft 0924c7ec2d Import 4.4-Lite version. 1994-06-13 22:50:46 +00:00
mycroft 5922d844af Update from 4.4-Lite, with local changes. 1994-06-08 19:23:02 +00:00