Commit Graph

70 Commits

Author SHA1 Message Date
joerg
baa8e84b6f Use __dead 2011-08-29 14:34:58 +00:00
pooka
56a6edc13a Use getprogname() instead of hardcoding "mount_nfs" to get the
right info in rump_nfs.
2009-11-30 17:17:55 +00:00
pooka
3b219697ed Fix bug I introduced in rev 1.64: don't use stack space after
return.  pointed out by yamt.
2009-04-03 07:26:07 +00:00
yamt
a85598544d nfsdefargs: use designated initializers 2009-02-20 15:37:22 +00:00
pooka
547a80b5eb Fix noresport mount option parsing. 2009-01-11 20:22:11 +00:00
pooka
61c5cf598d Convert mount_nfs to the mount_foo_parseargs() format. No functional
change.
2008-10-16 09:12:54 +00:00
pooka
4a6dd4a9c6 Assign default value for retrycnt already in data.
XXX: the use of globals would benefit from a loving touch
2008-09-27 20:39:42 +00:00
lukem
6543a91fea Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
yamt
ca117550c0 remove an unused variable, nfsproto. 2007-11-30 16:13:15 +00:00
pooka
704e075311 Make all mount(2) return value error checks against -1. Some file
systems just checked != 0, breaking MNT_GETARGS.  Others worked with < 0,
but make them check against -1 too for consistency.  And sprinkle some
stylish line wrapping where appropriate.
2007-07-16 17:06:52 +00:00
dsl
7af7206539 Add additional 'sizeof args' parameter to mount(2). 2007-07-14 15:57:24 +00:00
hubertf
d8a2863966 - removes unused ctype.h header
- correct comment in mount_nfs/getnfsargs.c: s/Nead/Need/

From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 00:30:36 +00:00
yamt
dae26da41f remove the rest of Kerberos 4 code. 2006-12-27 12:43:10 +00:00
yamt
bb0e3db15a sync with header changes. (nqnfs removal) 2006-12-27 12:13:55 +00:00
wiz
211f17ad46 Sort options in usage. 2006-12-27 11:28:59 +00:00
yamt
580a1898fe revive -D option because it actually has some meanings for non-nqnfs mounts. 2006-12-27 11:05:04 +00:00
yamt
442aa98fcd remove nqnfs support.
namely,
	- make -q a synonym of -3.
	- ignore -L and -D.
2006-11-09 10:07:00 +00:00
christos
5afd1c0a23 use MOPT_NULL 2006-10-16 03:37:42 +00:00
yamt
ebeaf83fb7 do not keep to use nfsv3 filehandle when falling back to nfsv2. 2006-05-20 08:06:48 +00:00
wiz
637b6cf962 unifdef NFSKERB (Kerberos 4 support). Update man page and usage() for
-K and -m removal (Kerberos 4 specific options).
2006-03-23 23:23:27 +00:00
christos
7067dcb9a4 Always check the results of getmntopts() and free them. 2006-03-21 21:11:41 +00:00
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