History log of /src/sbin/mount_nfs/mount_nfs.c |
Revision | | Date | Author | Comments |
1.76 |
| 03-Jan-2025 |
rillig | mount_nfs: fix a few lint warnings
The options 'K' and 'm:' are neither documented nor handled.
|
1.75 |
| 21-Dec-2022 |
chs | branches: 1.75.2; mount_nfs: add missing "A" to getopt string
|
1.74 |
| 03-Oct-2020 |
christos | branches: 1.74.6; - centralize number parsing code - enable -g - KNF
|
1.73 |
| 03-Oct-2020 |
christos | Add -A (noac) option to turn off the attribute cache. (Maciej W. Rozycki)
|
1.72 |
| 17-May-2018 |
thorpej | Default NFS mounts to using TCP transport instead of UDP. PR kern/53166
|
1.71 |
| 29-Jun-2013 |
christos | branches: 1.71.26; declare the variables that getnfsargs need in getnfsargs so that they can easily be used from other programs.
|
1.70 |
| 01-Mar-2013 |
joerg | Retire OSI network stack. OK core@
|
1.69 |
| 29-Aug-2011 |
joerg | branches: 1.69.2; 1.69.8; Use __dead
|
1.68 |
| 30-Nov-2009 |
pooka | Use getprogname() instead of hardcoding "mount_nfs" to get the right info in rump_nfs.
|
1.67 |
| 03-Apr-2009 |
pooka | Fix bug I introduced in rev 1.64: don't use stack space after return. pointed out by yamt.
|
1.66 |
| 20-Feb-2009 |
yamt | nfsdefargs: use designated initializers
|
1.65 |
| 11-Jan-2009 |
pooka | branches: 1.65.2; Fix noresport mount option parsing.
|
1.64 |
| 16-Oct-2008 |
pooka | Convert mount_nfs to the mount_foo_parseargs() format. No functional change.
|
1.63 |
| 27-Sep-2008 |
pooka | Assign default value for retrycnt already in data. XXX: the use of globals would benefit from a loving touch
|
1.62 |
| 20-Jul-2008 |
lukem | Remove the \n and tabs from the __COPYRIGHT() strings. (Tweak some to use a consistent format.)
|
1.61 |
| 30-Nov-2007 |
yamt | branches: 1.61.2; 1.61.8; 1.61.12; remove an unused variable, nfsproto.
|
1.60 |
| 16-Jul-2007 |
pooka | branches: 1.60.4; 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.
|
1.59 |
| 14-Jul-2007 |
dsl | Add additional 'sizeof args' parameter to mount(2).
|
1.58 |
| 10-Mar-2007 |
hubertf | - removes unused ctype.h header - correct comment in mount_nfs/getnfsargs.c: s/Nead/Need/
From: Slava Semushin <php-coder@altlinux.ru>
|
1.57 |
| 27-Dec-2006 |
yamt | remove the rest of Kerberos 4 code.
|
1.56 |
| 27-Dec-2006 |
yamt | sync with header changes. (nqnfs removal)
|
1.55 |
| 27-Dec-2006 |
wiz | Sort options in usage.
|
1.54 |
| 27-Dec-2006 |
yamt | revive -D option because it actually has some meanings for non-nqnfs mounts.
|
1.53 |
| 09-Nov-2006 |
yamt | remove nqnfs support. namely, - make -q a synonym of -3. - ignore -L and -D.
|
1.52 |
| 16-Oct-2006 |
christos | use MOPT_NULL
|
1.51 |
| 20-May-2006 |
yamt | do not keep to use nfsv3 filehandle when falling back to nfsv2.
|
1.50 |
| 23-Mar-2006 |
wiz | unifdef NFSKERB (Kerberos 4 support). Update man page and usage() for -K and -m removal (Kerberos 4 specific options).
|
1.49 |
| 21-Mar-2006 |
christos | Always check the results of getmntopts() and free them.
|
1.48 |
| 15-May-2005 |
dsl | 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)
|
1.47 |
| 05-Feb-2005 |
xtraeme | branches: 1.47.2; Kill __P(), use ANSI function declarations; WARNS=3.
|
1.46 |
| 31-Jan-2005 |
erh | Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to device nodes into absolute paths before using them.
|
1.45 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22308, verified by myself.
|
1.44 |
| 23-Jul-2003 |
itojun | include des.h, not kerberosIV/des.h
|
1.43 |
| 13-Jul-2003 |
itojun | use bounded string op
|
1.42 |
| 16-May-2003 |
yamt | fix a typo that prevents -o wsize=nnn to work.
|
1.41 |
| 05-May-2003 |
yamt | remove _KERNEL hack.
|
1.40 |
| 11-Apr-2003 |
christos | 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.
|
1.39 |
| 10-Apr-2003 |
lukem | fix typo introduced in previous (print "addr=" instead of "ddr=")
|
1.38 |
| 07-Apr-2003 |
fvdl | Don't print the version of the argument structure, it's easily confused with the NFS version.
|
1.37 |
| 22-Mar-2003 |
jdolecek | use <> rather than "" for #include mntopts.h
|
1.36 |
| 21-Oct-2002 |
enami | When printing filesystem specific parameters, also print the address and port of server numerically.
|
1.35 |
| 01-Oct-2002 |
itojun | KNF
|
1.34 |
| 21-Sep-2002 |
christos | MNT_GETARGS support
|
1.33 |
| 16-Jun-2002 |
wrstuden | 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.
|
1.32 |
| 29-May-2002 |
cjs | When RPC fails, state explicitly which service we were trying to connect to.
|
1.31 |
| 02-Mar-2002 |
mrg | branches: 1.31.2; when complaining that we can't lookup a hostname, actually say which hostname this is...
|
1.30 |
| 11-Jan-2001 |
lukem | remove unnecessary ":" in openlog ident
|
1.29 |
| 30-Oct-2000 |
jdolecek | 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
|
1.28 |
| 16-Jul-2000 |
itojun | correct hard-to-understand indentation.
|
1.27 |
| 26-Jun-2000 |
bjh21 | Remove spurious colon from error message; clnt_pcreateerror provides one.
|
1.26 |
| 19-Jun-2000 |
fvdl | branches: 1.26.2; Handle unsupported protocols (i.e. no v6 support on the other side) a tad better.
|
1.25 |
| 09-Jun-2000 |
fvdl | Update to be more address-family independent, and adapt to TI-RPC interface.
XXX this code needs a cleanup, especially the retry-loop.
|
1.24 |
| 21-Nov-1999 |
mjl | branches: 1.24.2; Make usage message match actual options.
|
1.23 |
| 25-Jun-1999 |
perseant | branches: 1.23.4; Regularize error reporting of mount_* commands for failure of mount(2) to the form:
mount_xxx: dev on dir: reason for failure
|
1.22 |
| 14-May-1998 |
tron | branches: 1.22.2; Get protocol type for "pmap_getport()" from variable "nfsproto" instead of checking the socket type.
|
1.21 |
| 01-Apr-1998 |
kleink | No need to include <sys/socketvar.h>.
|
1.20 |
| 01-Mar-1998 |
fvdl | Merge with Lite2 + local changes
|
1.19 |
| 03-Feb-1998 |
perry | change <strings.h> to <string.h> to fix compiler warning
|
1.18 |
| 19-Oct-1997 |
fvdl | 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)).
|
1.17 |
| 15-Sep-1997 |
lukem | * update for WARNS=1 * getopt returns -1 not EOF * fix .Nm usage * deprecate register * bzero() -> memset()
|
1.16 |
| 12-May-1997 |
jtk | fix typo: PRC should have been RPC
|
1.15 |
| 23-Mar-1997 |
fvdl | 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.
|
1.14 |
| 27-Oct-1996 |
christos | 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.
|
1.13 |
| 23-May-1996 |
fvdl | 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.
|
1.12 |
| 13-Apr-1996 |
jtc | branches: 1.12.4; Add const qualifier to mopts table
|
1.11 |
| 18-Feb-1996 |
fvdl | Bring in NFSv3 code by Rick Macklem (from Lite2).
|
1.10 |
| 21-May-1995 |
mycroft | Use inet_aton(), not inet_addr().
|
1.9 |
| 28-Mar-1995 |
jtc | KERNEL -> _KERNEL
|
1.8 |
| 18-Mar-1995 |
cgd | convert to new RCS Id conventions; reduce my headache
|
1.7 |
| 29-Dec-1994 |
cgd | fix bug 547. it looks like somebody mis-pasted. kirk has been informed.
|
1.6 |
| 23-Sep-1994 |
mycroft | Eliminate uses of some obsolete functions.
|
1.5 |
| 17-Sep-1994 |
mycroft | Get the root filehandle using the same transport as the mount itself. From Ken Hornstein.
|
1.4 |
| 05-Sep-1994 |
mycroft | Fix incorrect error messages.
|
1.3 |
| 27-Jul-1994 |
brezak | Use default realm instead of constant
|
1.2 |
| 24-Jun-1994 |
pk | branches: 1.2.2; Make numerical IP addresses work (fix from Christos Zoulas).
|
1.1 |
| 08-Jun-1994 |
mycroft | branches: 1.1.1; Update from 4.4-Lite, with local changes.
|
1.1.1.2 |
| 09-Jan-1997 |
tls | Import from 4.4BSD-Lite2
|
1.1.1.1 |
| 13-Jun-1994 |
mycroft | Import 4.4-Lite version.
|
1.2.2.1 |
| 06-Sep-1994 |
cgd | from trunk.
|
1.12.4.1 |
| 25-May-1996 |
fvdl | Pull in options-combinations bugfix from main branch.
|
1.22.2.1 |
| 05-Sep-1999 |
he | Pull up revision 1.23: Regularize error reporting of mount_* commands for failure of mount(2) to the form "mount_xxx: dev on dir: reason for failure" (as opposed to the old "mount_xxx: : reason for failure"). (perseant)
|
1.23.4.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.24.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.26.2.1 |
| 03-Jul-2000 |
thorpej | Pull up rev. 1.27: Remove spurious colon from error message; clnt_pcreateerror provides one.
|
1.31.2.1 |
| 18-Jun-2002 |
lukem | Pull up revision 1.33 (requested by wrstuden in ticket #290): 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.
|
1.47.2.1 |
| 11-Jun-2005 |
tron | Apply patch (requested by lukem in ticket #391): Use ai_nfs instead of the uninitialized ai when determining the NFSMNT_KERB reverse IP address, and ensure ecode is set as well. (Fix derived from getnfsargs.c 1.2)
|
1.60.4.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.61.12.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.61.8.2 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.61.8.1 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.61.2.2 |
| 30-Nov-2007 |
yamt | remove an unused variable, nfsproto.
|
1.61.2.1 |
| 30-Nov-2007 |
yamt | file mount_nfs.c was added on branch mjf-devfs on 2007-11-30 16:13:16 +0000
|
1.65.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.69.8.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.69.8.1 |
| 23-Jun-2013 |
tls | resync from head
|
1.69.2.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.71.26.1 |
| 21-May-2018 |
pgoyette | Sync with HEAD
|
1.74.6.1 |
| 21-Dec-2022 |
martin | Pull up following revision(s) (requested by chs in ticket #18):
sbin/mount_nfs/mount_nfs.c: revision 1.75
mount_nfs: add missing "A" to getopt string
|
1.75.2.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|