Document some undocumented options (-d and -N) and commands
in interactive mode (?, xit and Debug).
This commit is contained in:
parent
ae49269de7
commit
e3c03cb969
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: interactive.c,v 1.13 1997/09/16 13:44:13 lukem Exp $ */
|
/* $NetBSD: interactive.c,v 1.14 1998/01/10 08:27:54 enami Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1985, 1993
|
* Copyright (c) 1985, 1993
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)interactive.c 8.5 (Berkeley) 5/1/95";
|
static char sccsid[] = "@(#)interactive.c 8.5 (Berkeley) 5/1/95";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: interactive.c,v 1.13 1997/09/16 13:44:13 lukem Exp $");
|
__RCSID("$NetBSD: interactive.c,v 1.14 1998/01/10 08:27:54 enami Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -191,7 +191,7 @@ loop:
|
||||||
if (strncmp(cmd, "help", strlen(cmd)) != 0)
|
if (strncmp(cmd, "help", strlen(cmd)) != 0)
|
||||||
goto bad;
|
goto bad;
|
||||||
case '?':
|
case '?':
|
||||||
fprintf(stderr, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
|
fprintf(stderr, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
|
||||||
"Available commands are:\n",
|
"Available commands are:\n",
|
||||||
"\tls [arg] - list directory\n",
|
"\tls [arg] - list directory\n",
|
||||||
"\tcd arg - change directory\n",
|
"\tcd arg - change directory\n",
|
||||||
|
@ -202,11 +202,12 @@ loop:
|
||||||
" list of files to be extracted\n",
|
" list of files to be extracted\n",
|
||||||
"\textract - extract requested files\n",
|
"\textract - extract requested files\n",
|
||||||
"\tsetmodes - set modes of requested directories\n",
|
"\tsetmodes - set modes of requested directories\n",
|
||||||
"\tquit - immediately exit program\n",
|
"\tquit or xit - immediately exit program\n",
|
||||||
"\twhat - list dump header information\n",
|
"\twhat - list dump header information\n",
|
||||||
"\tverbose - toggle verbose flag",
|
"\tverbose - toggle verbose flag",
|
||||||
" (useful with ``ls'')\n",
|
" (useful with ``ls'')\n",
|
||||||
"\thelp or `?' - print this list\n",
|
"\thelp or `?' - print this list\n",
|
||||||
|
"\tDebug - turn on debugging\n",
|
||||||
"If no `arg' is supplied, the current",
|
"If no `arg' is supplied, the current",
|
||||||
" directory is used\n");
|
" directory is used\n");
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: main.c,v 1.16 1997/09/16 13:44:14 lukem Exp $ */
|
/* $NetBSD: main.c,v 1.17 1998/01/10 08:27:55 enami Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1983, 1993
|
* Copyright (c) 1983, 1993
|
||||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/4/95";
|
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/4/95";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: main.c,v 1.16 1997/09/16 13:44:14 lukem Exp $");
|
__RCSID("$NetBSD: main.c,v 1.17 1998/01/10 08:27:55 enami Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -290,19 +290,19 @@ usage()
|
||||||
{
|
{
|
||||||
|
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
"usage: %s -i [-chmvy] [-b blocksize] [-f file] [-s fileno]\n",
|
"usage: %s -i [-cdhmvyN] [-b blocksize] [-f file] [-s fileno]\n",
|
||||||
__progname);
|
__progname);
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
"\t%s -R [-cvy] [-b blocksize] [-f file] [-s fileno]\n",
|
"\t%s -R [-cdvyN] [-b blocksize] [-f file] [-s fileno]\n",
|
||||||
__progname);
|
__progname);
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
"\t%s -r [-cvy] [-b blocksize] [-f file] [-s fileno]\n",
|
"\t%s -r [-cdvyN] [-b blocksize] [-f file] [-s fileno]\n",
|
||||||
__progname);
|
__progname);
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
"\t%s -t [-chvy] [-b blocksize] [-f file] [-s fileno] [file ...]\n",
|
"\t%s -t [-cdhvy] [-b blocksize] [-f file] [-s fileno] [file ...]\n",
|
||||||
__progname);
|
__progname);
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
"\t%s -x [-chmvy] [-b blocksize] [-f file] [-s fileno] [file ...]\n",
|
"\t%s -x [-cdhmvyN] [-b blocksize] [-f file] [-s fileno] [file ...]\n",
|
||||||
__progname);
|
__progname);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.\" $NetBSD: restore.8,v 1.20 1998/01/10 08:21:58 enami Exp $
|
.\" $NetBSD: restore.8,v 1.21 1998/01/10 08:27:56 enami Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1985, 1991, 1993
|
.\" Copyright (c) 1985, 1991, 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
|
@ -43,32 +43,32 @@
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Fl i
|
.Fl i
|
||||||
.Op Fl chmvy
|
.Op Fl cdhmvyN
|
||||||
.Op Fl b Ar blocksize
|
.Op Fl b Ar blocksize
|
||||||
.Op Fl f Ar file
|
.Op Fl f Ar file
|
||||||
.Op Fl s Ar fileno
|
.Op Fl s Ar fileno
|
||||||
.Nm ""
|
.Nm ""
|
||||||
.Fl R
|
.Fl R
|
||||||
.Op Fl cvy
|
.Op Fl cdvyN
|
||||||
.Op Fl b Ar blocksize
|
.Op Fl b Ar blocksize
|
||||||
.Op Fl f Ar file
|
.Op Fl f Ar file
|
||||||
.Op Fl s Ar fileno
|
.Op Fl s Ar fileno
|
||||||
.Nm ""
|
.Nm ""
|
||||||
.Fl r
|
.Fl r
|
||||||
.Op Fl cvy
|
.Op Fl cdvyN
|
||||||
.Op Fl b Ar blocksize
|
.Op Fl b Ar blocksize
|
||||||
.Op Fl f Ar file
|
.Op Fl f Ar file
|
||||||
.Op Fl s Ar fileno
|
.Op Fl s Ar fileno
|
||||||
.Nm ""
|
.Nm ""
|
||||||
.Fl t
|
.Fl t
|
||||||
.Op Fl chvy
|
.Op Fl cdhvy
|
||||||
.Op Fl b Ar blocksize
|
.Op Fl b Ar blocksize
|
||||||
.Op Fl f Ar file
|
.Op Fl f Ar file
|
||||||
.Op Fl s Ar fileno
|
.Op Fl s Ar fileno
|
||||||
.Op file ...
|
.Op file ...
|
||||||
.Nm ""
|
.Nm ""
|
||||||
.Fl x
|
.Fl x
|
||||||
.Op Fl chmvy
|
.Op Fl cdhmvyN
|
||||||
.Op Fl b Ar blocksize
|
.Op Fl b Ar blocksize
|
||||||
.Op Fl f Ar file
|
.Op Fl f Ar file
|
||||||
.Op Fl s Ar fileno
|
.Op Fl s Ar fileno
|
||||||
|
@ -145,7 +145,7 @@ from the dump.
|
||||||
will ask which volume the user wishes to mount.
|
will ask which volume the user wishes to mount.
|
||||||
The fastest way to extract a few files is to
|
The fastest way to extract a few files is to
|
||||||
start with the last volume, and work towards the first volume.
|
start with the last volume, and work towards the first volume.
|
||||||
.It Ic help
|
.It Ic help , ?
|
||||||
List a summary of the available commands.
|
List a summary of the available commands.
|
||||||
.It Ic \&ls Op Ar arg
|
.It Ic \&ls Op Ar arg
|
||||||
List the current or specified directory.
|
List the current or specified directory.
|
||||||
|
@ -155,7 +155,7 @@ If the verbose
|
||||||
flag is set the inode number of each entry is also listed.
|
flag is set the inode number of each entry is also listed.
|
||||||
.It Ic pwd
|
.It Ic pwd
|
||||||
Print the full pathname of the current working directory.
|
Print the full pathname of the current working directory.
|
||||||
.It Ic quit
|
.It Ic quit , Ic xit
|
||||||
Restore immediately exits,
|
Restore immediately exits,
|
||||||
even if the extraction list is not empty.
|
even if the extraction list is not empty.
|
||||||
.It Ic setmodes
|
.It Ic setmodes
|
||||||
|
@ -173,6 +173,10 @@ command to list the inode numbers of all entries.
|
||||||
It also causes
|
It also causes
|
||||||
.Nm
|
.Nm
|
||||||
to print out information about each file as it is extracted.
|
to print out information about each file as it is extracted.
|
||||||
|
.It Ic what
|
||||||
|
List dump header information.
|
||||||
|
.It Ic Debug
|
||||||
|
Enable debugging.
|
||||||
.El
|
.El
|
||||||
.It Fl R
|
.It Fl R
|
||||||
.Nm
|
.Nm
|
||||||
|
@ -275,6 +279,8 @@ old (pre-4.4) or new format file sytem. The
|
||||||
.Fl c
|
.Fl c
|
||||||
flag disables this check, and only allows reading a dump in the old
|
flag disables this check, and only allows reading a dump in the old
|
||||||
format.
|
format.
|
||||||
|
.It Fl d
|
||||||
|
Enable debugging.
|
||||||
.It Fl f Ar file
|
.It Fl f Ar file
|
||||||
Read the backup from
|
Read the backup from
|
||||||
.Ar file ;
|
.Ar file ;
|
||||||
|
@ -337,6 +343,8 @@ preceded by its file type.
|
||||||
.It Fl y
|
.It Fl y
|
||||||
Do not ask the user whether to abort the restore in the event of an error.
|
Do not ask the user whether to abort the restore in the event of an error.
|
||||||
Always try to skip over the bad block(s) and continue.
|
Always try to skip over the bad block(s) and continue.
|
||||||
|
.It Fl N
|
||||||
|
Do not perform actual writing to disk.
|
||||||
.El
|
.El
|
||||||
.Sh DIAGNOSTICS
|
.Sh DIAGNOSTICS
|
||||||
Complains if it gets a read error.
|
Complains if it gets a read error.
|
||||||
|
|
Loading…
Reference in New Issue