Commit Graph

49 Commits

Author SHA1 Message Date
dsl
9abd2f5605 Split getnfsargs() out into its own file, it drags in 70kB of rpc code.
I might manage to write a version that doesn't pull in all the crud.
(Which will give a load of space in the install floppy images)
2005-05-15 21:18:34 +00:00
xtraeme
60fef07963 Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-05 14:55:44 +00:00
erh
fdd16c549b Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to
device nodes into absolute paths before using them.
2005-01-31 05:19:18 +00:00
agc
276d62f603 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
itojun
e45b6fad8e include des.h, not kerberosIV/des.h 2003-07-23 21:10:36 +00:00
itojun
8883e1fb40 use bounded string op 2003-07-13 08:05:58 +00:00
yamt
a1d2fd4ed9 fix a typo that prevents -o wsize=nnn to work. 2003-05-16 15:33:45 +00:00
yamt
93fa2d7018 remove _KERNEL hack. 2003-05-05 13:23:10 +00:00
christos
c54d6ca813 PR/1472: David Carrel: Add option to specify the nfs port.
This was not done, I added the functionality to be able to parse
port=num in the options. While I was there, I added this for all
the other numeric options: rsize, wsize etc.
2003-04-11 17:39:09 +00:00
lukem
04a792a536 fix typo introduced in previous (print "addr=" instead of "ddr=") 2003-04-10 04:40:38 +00:00
fvdl
253e7c6b6a Don't print the version of the argument structure, it's easily confused
with the NFS version.
2003-04-07 13:31:17 +00:00
jdolecek
899bce0921 use <> rather than "" for #include mntopts.h 2003-03-22 11:15:45 +00:00
enami
7409653fdf When printing filesystem specific parameters, also print the address and
port of server numerically.
2002-10-21 03:58:07 +00:00
itojun
d72e601340 KNF 2002-10-01 03:08:56 +00:00
christos
9f9ee29713 MNT_GETARGS support 2002-09-21 18:43:31 +00:00
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