Commit Graph

124 Commits

Author SHA1 Message Date
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
wiz
86340eaa2b Remove outdated example. From Todd Kover in PR 41238. 2009-04-18 14:55:50 +00:00
joerg
f558fc74ff Fix string literals. 2009-04-08 13:12:20 +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
tsutsui
08e5f5529c Add workaround typedefs for awful hack.
XXX: It's completely unacceptable for me to refer libsa files from userland.
XXX: Nowadays we no longer have serious size restriction in install media,
XXX: so I think it's much better to simply remove this ugly SMALLPROG hacks.
XXX: If you really want to share files, please move them into src/common
XXX: with defined APIs.
2009-01-13 11:47:32 +00:00
pooka
86cc06cf64 -o resport, not -o resvport 2009-01-11 20:22:41 +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
084e92b62d Reword quite out-of-place (even historically) "nqnfs 2" error message. 2008-10-15 19:06:45 +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
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
yamt
ca117550c0 remove an unused variable, nfsproto. 2007-11-30 16:13:15 +00:00
yamt
f72b283e28 - fix timeout for -s.
- mention default values of some options.
2007-11-09 12:25:00 +00:00
yamt
3c955ef258 lengthen timeout. i saw a server for which 10s was not enough. 2007-08-05 22:09:12 +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
ginsbach
3d6fea5a84 Add arguments to option descriptions for options that require arguments.
Document all of the NFS specific -o options.
2007-06-01 17:43:19 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +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
wiz
78cc844673 Sort options. 2006-12-27 11:27:37 +00:00
yamt
b9625c8fbe oops, remove duplicated -D. 2006-12-27 11:08:30 +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
hubertf
33bed52cb8 Replace strcpy() call with strlcpy() call.
OK'd by christos@
2006-07-07 17:25:01 +00:00
yamt
ebeaf83fb7 do not keep to use nfsv3 filehandle when falling back to nfsv2. 2006-05-20 08:06:48 +00:00
yamt
ae4a112295 replace a magic constant with a macro. 2006-05-20 07:56:28 +00:00
yamt
248ca69bad copy missing copyright notices from
getnfsargs.c and sys/arch/i386/stand/libsa/nfs.c.
2006-05-20 07:48:39 +00:00
wiz
d292467748 Remove Kerberos4/NFSKERB settings. 2006-03-23 23:53:23 +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
wiz
c1bf91bf36 Fix typo in Xref. 2006-03-23 20:15:49 +00:00
christos
7067dcb9a4 Always check the results of getmntopts() and free them. 2006-03-21 21:11:41 +00:00
yamt
7273d6e313 whitespace. 2006-01-21 10:55:56 +00:00
dsl
a16ca1845f Use the rpc code from sys/lib/libsa to determine the root file handle.
Saves the code from depending on the xdr functions.
Tested on i386 and IPv4, may need tweaking for IPv6 and using TCP for the
portmap/mount functions.
2006-01-21 10:32:23 +00:00
dsl
c23511b386 Add a missing break!
Maybe 'mount_nfs -oport=<port>' has been broken since the IPv6 changes.
2005-11-12 20:30:21 +00:00
christos
2c6eadc9ce Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
2005-06-27 01:00:04 +00:00
peter
a9b411c198 Change all .Xr config 8 to .Xr config 1, following the recent move of
config from usr.sbin -> usr.bin.

Reviewed by wiz.
2005-06-20 13:25:23 +00:00
lukem
230e9bea1f Use ai_nfs instead of the uninitialized ai when determining the NFSMNT_KERB
reverse IP address, and ensure ecode is set as well.
Detected with gcc -Wuninitialized.
(The bug was introduced in mount_nfs.c rev 1.25.  Hi fvdl! :)
2005-06-02 01:24:45 +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
yamt
389f0f7cb8 note that loopback mount is a bad idea. 2005-01-21 15:49:43 +00:00
lukem
7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
fair
22e40d8402 Came in here to add nfsstat(1) reference in SEE ALSO,
but since I was here...

Correct spelling of "Kerberos." Add RFC references.
Reword some awkward english.  Sprinkle mandoc macros throughout.
Add white space to aid readability. Change date.
2004-05-05 00:21:00 +00:00
grant
fc6ca7735c uppercase NFS acronym 2004-01-15 03:33:20 +00:00