Sync usage string and man page. Correct use of .Nm. Spelling. Remove
unused #includes.
This commit is contained in:
parent
787e61c650
commit
46fc8f78df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37427
@ -31,7 +31,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" @(#)mount_nfs.8 8.3 (Berkeley) 3/29/95
|
.\" @(#)mount_nfs.8 8.3 (Berkeley) 3/29/95
|
||||||
.\"
|
.\"
|
||||||
.\" $Id: mount_nfs.8,v 1.12 1998/05/19 07:18:27 peter Exp $
|
.\" $Id: mount_nfs.8,v 1.13 1998/06/29 06:58:46 jkoshy Exp $
|
||||||
.\""
|
.\""
|
||||||
.Dd March 29, 1995
|
.Dd March 29, 1995
|
||||||
.Dt MOUNT_NFS 8
|
.Dt MOUNT_NFS 8
|
||||||
@ -57,7 +57,7 @@
|
|||||||
.Ar rhost:path node
|
.Ar rhost:path node
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Nm mount_nfs
|
.Nm
|
||||||
command
|
command
|
||||||
calls the
|
calls the
|
||||||
.Xr mount 2
|
.Xr mount 2
|
||||||
@ -191,7 +191,7 @@ The default is to query the portmapper for the NFS port.
|
|||||||
.It acregmax=<seconds>
|
.It acregmax=<seconds>
|
||||||
.It acdirmin=<seconds>
|
.It acdirmin=<seconds>
|
||||||
.It acdirmax=<seconds>
|
.It acdirmax=<seconds>
|
||||||
When attributes of files are cached, a timeout caclulated to determine
|
When attributes of files are cached, a timeout calculated to determine
|
||||||
whether a given cache entry has expired. These four values determine the
|
whether a given cache entry has expired. These four values determine the
|
||||||
upper and lower bounds of the timeouts for ``directory'' attributes and
|
upper and lower bounds of the timeouts for ``directory'' attributes and
|
||||||
``regular'' (ie: everything else). The default values are 3 -> 60 seconds
|
``regular'' (ie: everything else). The default values are 3 -> 60 seconds
|
||||||
@ -205,7 +205,7 @@ the longer the cache is considered valid, subject to the limits above.
|
|||||||
.Pp
|
.Pp
|
||||||
Use of these options is deprecated, they are only mentioned here for
|
Use of these options is deprecated, they are only mentioned here for
|
||||||
compatibility with historic versions of
|
compatibility with historic versions of
|
||||||
.Nm mount_nfs .
|
.Nm Ns .
|
||||||
.It bg
|
.It bg
|
||||||
Same as
|
Same as
|
||||||
.Fl b .
|
.Fl b .
|
||||||
|
@ -35,23 +35,21 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static const char copyright[] =
|
||||||
"@(#) Copyright (c) 1992, 1993, 1994\n\
|
"@(#) Copyright (c) 1992, 1993, 1994\n\
|
||||||
The Regents of the University of California. All rights reserved.\n";
|
The Regents of the University of California. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
/*
|
#if 0
|
||||||
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
|
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
|
||||||
*/
|
#endif
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: mount_nfs.c,v 1.27 1998/02/01 21:53:19 bde Exp $";
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/socketvar.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/syslog.h>
|
#include <sys/syslog.h>
|
||||||
|
|
||||||
@ -78,9 +76,7 @@ static const char rcsid[] =
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <signal.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
@ -213,7 +209,7 @@ int xdr_fh __P((XDR *, struct nfhret *));
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Used to set mount flags with getmntopts. Call with dir=TRUE to
|
* Used to set mount flags with getmntopts. Call with dir=TRUE to
|
||||||
* initialise altflags from the current mount flags. Call with
|
* initialize altflags from the current mount flags. Call with
|
||||||
* dir=FALSE to update mount flags with the new value of altflags after
|
* dir=FALSE to update mount flags with the new value of altflags after
|
||||||
* the call to getmntopts.
|
* the call to getmntopts.
|
||||||
*/
|
*/
|
||||||
@ -493,7 +489,7 @@ main(argc, argv)
|
|||||||
#endif
|
#endif
|
||||||
if (nfsargsp->flags & (NFSMNT_NQNFS | NFSMNT_KERB)) {
|
if (nfsargsp->flags & (NFSMNT_NQNFS | NFSMNT_KERB)) {
|
||||||
if ((opflags & ISBGRND) == 0) {
|
if ((opflags & ISBGRND) == 0) {
|
||||||
if (i = fork()) {
|
if ((i = fork())) {
|
||||||
if (i == -1)
|
if (i == -1)
|
||||||
err(1, "nqnfs 1");
|
err(1, "nqnfs 1");
|
||||||
exit(0);
|
exit(0);
|
||||||
@ -522,7 +518,7 @@ main(argc, argv)
|
|||||||
* as last time, so that the right ticket file
|
* as last time, so that the right ticket file
|
||||||
* is found.
|
* is found.
|
||||||
* Get the Kerberos credential structure so that
|
* Get the Kerberos credential structure so that
|
||||||
* we have the seesion key and get a ticket for
|
* we have the session key and get a ticket for
|
||||||
* this uid.
|
* this uid.
|
||||||
* For more info see the IETF Draft "Authentication
|
* For more info see the IETF Draft "Authentication
|
||||||
* in ONC RPC".
|
* in ONC RPC".
|
||||||
@ -548,7 +544,7 @@ main(argc, argv)
|
|||||||
realm, 0);
|
realm, 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fill in the AKN_FULLNAME authenticator and verfier.
|
* Fill in the AKN_FULLNAME authenticator and verifier.
|
||||||
* Along with the Kerberos ticket, we need to build
|
* Along with the Kerberos ticket, we need to build
|
||||||
* the timestamp verifier and encrypt it in CBC mode.
|
* the timestamp verifier and encrypt it in CBC mode.
|
||||||
*/
|
*/
|
||||||
@ -771,7 +767,7 @@ getnfsargs(spec, nfsargsp)
|
|||||||
mountmode = V2;
|
mountmode = V2;
|
||||||
goto tryagain;
|
goto tryagain;
|
||||||
} else {
|
} else {
|
||||||
errx(1, "Can't contact NFS server");
|
errx(1, "can't contact NFS server");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
saddr.sin_port = 0;
|
saddr.sin_port = 0;
|
||||||
@ -820,7 +816,7 @@ getnfsargs(spec, nfsargsp)
|
|||||||
if (--retrycnt > 0) {
|
if (--retrycnt > 0) {
|
||||||
if (opflags & BGRND) {
|
if (opflags & BGRND) {
|
||||||
opflags &= ~BGRND;
|
opflags &= ~BGRND;
|
||||||
if (i = fork()) {
|
if ((i = fork())) {
|
||||||
if (i == -1)
|
if (i == -1)
|
||||||
err(1, "nqnfs 2");
|
err(1, "nqnfs 2");
|
||||||
exit(0);
|
exit(0);
|
||||||
@ -914,10 +910,10 @@ xdr_fh(xdrsp, np)
|
|||||||
void
|
void
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
(void)fprintf(stderr, "\
|
(void)fprintf(stderr, "%s\n%s\n%s\n%s\n",
|
||||||
usage: mount_nfs [-23KPTUbcdilqs] [-D deadthresh] [-I readdirsize]\n\
|
"usage: mount_nfs [-23KNPTUbcdilqs] [-D deadthresh] [-I readdirsize]",
|
||||||
[-L leaseterm] [-R retrycnt] [-a maxreadahead] [-g maxgroups]\n\
|
" [-L leaseterm] [-R retrycnt] [-a maxreadahead]",
|
||||||
[-m realm] [-o options] [-r readsize] [-t timeout] [-w writesize]\n\
|
" [-g maxgroups] [-m realm] [-o options] [-r readsize]",
|
||||||
[-x retrans] rhost:path node\n");
|
" [-t timeout] [-w writesize] [-x retrans] rhost:path node");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user