Correct use of .Nm. Add rcsid. Remove unused #includes.
This commit is contained in:
parent
7cac38703b
commit
7580ffbbbd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36997
@ -11,7 +11,7 @@
|
|||||||
.\" notice, this list of conditions and the following disclaimer in the
|
.\" notice, this list of conditions and the following disclaimer in the
|
||||||
.\" documentation and/or other materials provided with the distribution.
|
.\" documentation and/or other materials provided with the distribution.
|
||||||
.\" 3. All advertising materials mentioning features or use of this software
|
.\" 3. All advertising materials mentioning features or use of this software
|
||||||
.\" must display the following acknowledgement:
|
.\" must display the following acknowledgment:
|
||||||
.\" This product includes software developed by the University of
|
.\" This product includes software developed by the University of
|
||||||
.\" California, Berkeley and its contributors.
|
.\" California, Berkeley and its contributors.
|
||||||
.\" 4. Neither the name of the University nor the names of its contributors
|
.\" 4. Neither the name of the University nor the names of its contributors
|
||||||
@ -31,7 +31,7 @@
|
|||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" @(#)dump.8 8.3 (Berkeley) 5/1/95
|
.\" @(#)dump.8 8.3 (Berkeley) 5/1/95
|
||||||
.\" $Id: dump.8,v 1.19 1998/01/03 20:26:15 steve Exp $
|
.\" $Id: dump.8,v 1.20 1998/05/10 16:35:31 steve Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd May 1, 1995
|
.Dd May 1, 1995
|
||||||
.Dt DUMP 8
|
.Dt DUMP 8
|
||||||
@ -85,7 +85,7 @@ By default, the same output file name is used for each volume
|
|||||||
after prompting the operator to change media.
|
after prompting the operator to change media.
|
||||||
.Pp
|
.Pp
|
||||||
The following options are supported by
|
The following options are supported by
|
||||||
.Nm dump :
|
.Nm Ns :
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
.It Fl 0\-9
|
.It Fl 0\-9
|
||||||
Dump levels.
|
Dump levels.
|
||||||
@ -154,7 +154,7 @@ If the name of the file is of the form
|
|||||||
.Dq host:file ,
|
.Dq host:file ,
|
||||||
or
|
or
|
||||||
.Dq user@host:file ,
|
.Dq user@host:file ,
|
||||||
.Nm dump
|
.Nm
|
||||||
writes to the named file on the remote host using
|
writes to the named file on the remote host using
|
||||||
.Xr rmt 8 .
|
.Xr rmt 8 .
|
||||||
The default path name of the remote
|
The default path name of the remote
|
||||||
@ -167,11 +167,11 @@ this can be overridden by the environment variable
|
|||||||
.It Fl k
|
.It Fl k
|
||||||
Use Kerberos authentication to talk to remote tape servers. (Only
|
Use Kerberos authentication to talk to remote tape servers. (Only
|
||||||
available if this option was enabled when
|
available if this option was enabled when
|
||||||
.Nm dump
|
.Nm
|
||||||
was compiled.)
|
was compiled.)
|
||||||
.It Fl n
|
.It Fl n
|
||||||
Whenever
|
Whenever
|
||||||
.Nm dump
|
.Nm
|
||||||
requires operator attention,
|
requires operator attention,
|
||||||
notify all operators in the group
|
notify all operators in the group
|
||||||
.Dq operator
|
.Dq operator
|
||||||
@ -181,7 +181,7 @@ by means similar to a
|
|||||||
Attempt to calculate the amount of tape needed
|
Attempt to calculate the amount of tape needed
|
||||||
at a particular density.
|
at a particular density.
|
||||||
If this amount is exceeded,
|
If this amount is exceeded,
|
||||||
.Nm dump
|
.Nm
|
||||||
prompts for a new tape.
|
prompts for a new tape.
|
||||||
It is recommended to be a bit conservative on this option.
|
It is recommended to be a bit conservative on this option.
|
||||||
The default tape length is 2300 feet.
|
The default tape length is 2300 feet.
|
||||||
@ -227,7 +227,7 @@ and
|
|||||||
The
|
The
|
||||||
.Fl W
|
.Fl W
|
||||||
option causes
|
option causes
|
||||||
.Nm dump
|
.Nm
|
||||||
to print out, for each file system in
|
to print out, for each file system in
|
||||||
.Pa /etc/dumpdates
|
.Pa /etc/dumpdates
|
||||||
the most recent dump date and level,
|
the most recent dump date and level,
|
||||||
@ -235,7 +235,7 @@ and highlights those file systems that should be dumped.
|
|||||||
If the
|
If the
|
||||||
.Fl W
|
.Fl W
|
||||||
option is set, all other options are ignored, and
|
option is set, all other options are ignored, and
|
||||||
.Nm dump
|
.Nm
|
||||||
exits immediately.
|
exits immediately.
|
||||||
.It Fl w
|
.It Fl w
|
||||||
Is like W, but prints only those filesystems which need to be dumped.
|
Is like W, but prints only those filesystems which need to be dumped.
|
||||||
@ -251,15 +251,15 @@ disk read error (if there are more than a threshold of 32).
|
|||||||
In addition to alerting all operators implied by the
|
In addition to alerting all operators implied by the
|
||||||
.Fl n
|
.Fl n
|
||||||
key,
|
key,
|
||||||
.Nm dump
|
.Nm
|
||||||
interacts with the operator on
|
interacts with the operator on
|
||||||
.Em dump's
|
.Em dump's
|
||||||
control terminal at times when
|
control terminal at times when
|
||||||
.Nm dump
|
.Nm
|
||||||
can no longer proceed,
|
can no longer proceed,
|
||||||
or if something is grossly wrong.
|
or if something is grossly wrong.
|
||||||
All questions
|
All questions
|
||||||
.Nm dump
|
.Nm
|
||||||
poses
|
poses
|
||||||
.Em must
|
.Em must
|
||||||
be answered by typing
|
be answered by typing
|
||||||
@ -269,10 +269,10 @@ or
|
|||||||
appropriately.
|
appropriately.
|
||||||
.Pp
|
.Pp
|
||||||
Since making a dump involves a lot of time and effort for full dumps,
|
Since making a dump involves a lot of time and effort for full dumps,
|
||||||
.Nm dump
|
.Nm
|
||||||
checkpoints itself at the start of each tape volume.
|
checkpoints itself at the start of each tape volume.
|
||||||
If writing that volume fails for some reason,
|
If writing that volume fails for some reason,
|
||||||
.Nm dump
|
.Nm
|
||||||
will,
|
will,
|
||||||
with operator permission,
|
with operator permission,
|
||||||
restart itself from the checkpoint
|
restart itself from the checkpoint
|
||||||
@ -287,7 +287,7 @@ the time to the tape change.
|
|||||||
The output is verbose,
|
The output is verbose,
|
||||||
so that others know that the terminal
|
so that others know that the terminal
|
||||||
controlling
|
controlling
|
||||||
.Nm dump
|
.Nm
|
||||||
is busy,
|
is busy,
|
||||||
and will be for some time.
|
and will be for some time.
|
||||||
.Pp
|
.Pp
|
||||||
@ -364,7 +364,7 @@ Currently,
|
|||||||
.Xr physio 9
|
.Xr physio 9
|
||||||
slices all requests into chunks of 64 KB. Therefore, it is
|
slices all requests into chunks of 64 KB. Therefore, it is
|
||||||
impossible to use a larger tape blocksize, so
|
impossible to use a larger tape blocksize, so
|
||||||
.Nm dump
|
.Nm
|
||||||
will prevent this from happening.
|
will prevent this from happening.
|
||||||
.Pp
|
.Pp
|
||||||
.Nm Dump
|
.Nm Dump
|
||||||
@ -379,7 +379,7 @@ even if listed in
|
|||||||
.Pa /etc/fstab .
|
.Pa /etc/fstab .
|
||||||
.Pp
|
.Pp
|
||||||
It would be nice if
|
It would be nice if
|
||||||
.Nm dump
|
.Nm
|
||||||
knew about the dump sequence,
|
knew about the dump sequence,
|
||||||
kept track of the tapes scribbled on,
|
kept track of the tapes scribbled on,
|
||||||
told the operator which tape to mount when,
|
told the operator which tape to mount when,
|
||||||
@ -387,13 +387,14 @@ and provided more assistance
|
|||||||
for the operator running
|
for the operator running
|
||||||
.Xr restore .
|
.Xr restore .
|
||||||
.Pp
|
.Pp
|
||||||
.Nm dump
|
.Nm Dump
|
||||||
cannot do remote backups without being run as root, due to its
|
cannot do remote backups without being run as root, due to its
|
||||||
security history. This will be fixed in a later version of FreeBSD.
|
security history. This will be fixed in a later version of
|
||||||
|
.Bx Free .
|
||||||
Presently, it works if you set it setuid (like it used to be), but this
|
Presently, it works if you set it setuid (like it used to be), but this
|
||||||
might constitute a security risk.
|
might constitute a security risk.
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
A
|
A
|
||||||
.Nm dump
|
.Nm
|
||||||
command appeared in
|
command appeared in
|
||||||
.At v6 .
|
.At v6 .
|
||||||
|
@ -32,12 +32,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static char sccsid[] = "@(#)dumprmt.c 8.3 (Berkeley) 4/28/95";
|
static char sccsid[] = "@(#)dumprmt.c 8.3 (Berkeley) 4/28/95";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/mtio.h>
|
#include <sys/mtio.h>
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#ifdef sunos
|
#ifdef sunos
|
||||||
@ -56,10 +59,8 @@ static char sccsid[] = "@(#)dumprmt.c 8.3 (Berkeley) 4/28/95";
|
|||||||
#include <protocols/dumprestore.h>
|
#include <protocols/dumprestore.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <err.h>
|
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <signal.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -32,7 +32,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93";
|
static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -55,7 +59,6 @@ static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93";
|
|||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "dump.h"
|
#include "dump.h"
|
||||||
|
@ -29,18 +29,20 @@
|
|||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static const char copyright[] =
|
||||||
"@(#) Copyright (c) 1980, 1991, 1993, 1994\n\
|
"@(#) Copyright (c) 1980, 1991, 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[] = "@(#)main.c 8.6 (Berkeley) 5/1/95";
|
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/1/95";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -59,7 +61,6 @@ static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/1/95";
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <fstab.h>
|
#include <fstab.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -423,7 +424,8 @@ main(argc, argv)
|
|||||||
* Allocate tape buffer.
|
* Allocate tape buffer.
|
||||||
*/
|
*/
|
||||||
if (!alloctape())
|
if (!alloctape())
|
||||||
quit("can't allocate tape buffers - try a smaller blocking factor.\n");
|
quit(
|
||||||
|
"can't allocate tape buffers - try a smaller blocking factor.\n");
|
||||||
|
|
||||||
startnewtape(1);
|
startnewtape(1);
|
||||||
(void)time((time_t *)&(tstart_writing));
|
(void)time((time_t *)&(tstart_writing));
|
||||||
@ -640,7 +642,7 @@ obsolete(argcp, argvp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Copy remaining arguments. */
|
/* Copy remaining arguments. */
|
||||||
while (*nargv++ = *argv++);
|
while ((*nargv++ = *argv++));
|
||||||
|
|
||||||
/* Update argument count. */
|
/* Update argument count. */
|
||||||
*argcp = nargv - *argvp - 1;
|
*argcp = nargv - *argvp - 1;
|
||||||
|
@ -32,7 +32,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94";
|
static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -42,7 +46,6 @@ static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94";
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fstab.h>
|
#include <fstab.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <signal.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -32,7 +32,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static char sccsid[] = "@(#)tape.c 8.4 (Berkeley) 5/1/95";
|
static char sccsid[] = "@(#)tape.c 8.4 (Berkeley) 5/1/95";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -65,7 +69,6 @@ int write(), read();
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "dump.h"
|
#include "dump.h"
|
||||||
#include "pathnames.h"
|
|
||||||
|
|
||||||
int writesize; /* size of malloc()ed buffer for tape */
|
int writesize; /* size of malloc()ed buffer for tape */
|
||||||
long lastspclrec = -1; /* tape block number of last written header */
|
long lastspclrec = -1; /* tape block number of last written header */
|
||||||
|
@ -32,11 +32,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static char sccsid[] = "@(#)traverse.c 8.7 (Berkeley) 6/15/95";
|
static char sccsid[] = "@(#)traverse.c 8.7 (Berkeley) 6/15/95";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/time.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#ifdef sunos
|
#ifdef sunos
|
||||||
#include <sys/vnode.h>
|
#include <sys/vnode.h>
|
||||||
|
@ -32,22 +32,19 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static char sccsid[] = "@(#)unctime.c 8.2 (Berkeley) 6/14/94";
|
static char sccsid[] = "@(#)unctime.c 8.2 (Berkeley) 6/14/94";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __P
|
|
||||||
#include <sys/cdefs.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert a ctime(3) format string into a system format date.
|
* Convert a ctime(3) format string into a system format date.
|
||||||
* Return the date thus calculated.
|
* Return the date thus calculated.
|
||||||
|
Loading…
Reference in New Issue
Block a user