Commit Graph

135 Commits

Author SHA1 Message Date
christos 18c826e11c declare the variables that getnfsargs need in getnfsargs so that they can
easily be used from other programs.
2013-06-29 22:56:26 +00:00
joerg e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
dholland fc7133543a minor wording improvement. 2012-07-11 18:33:14 +00:00
wiz 1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
njoly 5dfcab3622 Note that amd64 defaults to 32k read/write data size, just like i386. 2012-04-02 07:27:43 +00:00
joerg baa8e84b6f Use __dead 2011-08-29 14:34:58 +00:00
jruoho 7fc7b88321 Remove a comma. From "Snader_LB" on freenode. 2011-08-29 11:47:46 +00:00
mrg 4cd6566dd0 switch from an ugly cast and ntohl() usage to be32dec(). use sizeof.
idea from dh, and fixes a GCC 4.5 warning.
2011-07-06 09:02:54 +00:00
joerg f9bbef6fd3 Extend CPPFLAGS, don't replace it 2011-04-10 16:47:04 +00:00
pooka 83c92bb41d Make it possible to set the retry timeout as a compile-time define.
This is useful for automated environments where everything (rpcbind,
mountd, nfsd and the client) is started in parallel in a split
second and there is a small chance we will race in there before
everything has been communicated to rpcbind.
2010-07-23 19:25:23 +00:00
pooka 04e9fbfc62 Remove no longer used -DNFS. 2010-03-05 19:53:37 +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
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