Commit Graph

148 Commits

Author SHA1 Message Date
chs fc887601fd mount_nfs: add missing "A" to getopt string 2022-12-21 19:00:52 +00:00
rin 623d9b5490 Fix typo: s/--r/-r/ 2021-03-14 02:56:51 +00:00
jmcneill e60d6bc1d4 Use 32K as the default NFSv3 read and write data sizes on aarch64, matching
i386 and amd64.
2021-01-24 12:51:32 +00:00
christos 10f7eba97a - centralize number parsing code
- enable -g
- KNF
2020-10-03 18:42:20 +00:00
wiz 2858bf9ece New sentence, new line. 2020-10-03 18:29:02 +00:00
christos a9f74273b0 Add -A (noac) option to turn off the attribute cache. (Maciej W. Rozycki) 2020-10-03 18:06:37 +00:00
wiz 36ad4ce7a8 Remove Tn for standard abbreviations. 2018-05-17 06:37:06 +00:00
thorpej e832c294bb Default NFS mounts to using TCP transport instead of UDP.
PR kern/53166
2018-05-17 02:34:31 +00:00
wiz 01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
christos ec5c127714 remove debugging printf. 2017-02-05 00:24:24 +00:00
christos e18b8724f0 use the netid value because it could be udp6... 2017-02-03 21:56:01 +00:00
sevan f61b6f043e Add HISTORY section.
Bump date.
Not sure where mount_nfs first showed up but the version in the moder BSDs originates
from 4.4BSD according to CSRG archive
http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.4BSD/usr/src/sbin/mount_nfs
Commercial offerings from Sun and others covers older systems, eg
https://groups.google.com/forum/#!topic/net.unix-wizards/lMe7aQikqJI
2016-09-12 02:06:16 +00:00
prlw1 9521ae7bfd Fix typos 2015-04-28 09:48:30 +00:00
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