Commit Graph

34 Commits

Author SHA1 Message Date
wrstuden 0e65ecc5d2 Catch error code from mount command, and if it's the
error given when we ask for a v3 mount on a v2-only kernel,
*and* we weren't forcing v3, try the mount again as a v2 mount
before erroring out.
2002-06-16 02:27:31 +00:00
cjs 9af8b52f66 When RPC fails, state explicitly which service we were trying to connect to. 2002-05-29 02:19:56 +00:00
mrg 4d6dd4f8f5 when complaining that we can't lookup a hostname, actually say which
hostname this is...
2002-03-02 12:25:23 +00:00
lukem 3efcec3cf5 remove unnecessary ":" in openlog ident 2001-01-11 01:33:35 +00:00
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
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
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 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
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
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
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
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
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
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
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