-$Id: CHANGES,v 1.131 2001/08/14 13:11:58 stelian Exp $
+$Id: CHANGES,v 1.132 2001/08/16 09:37:57 stelian Exp $
Changes between versions 0.4b23 and 0.4b24 (released ?????????????)
===================================================================
a compare (since it changes the working directory to the
filesystem being compared in the process).
+4. Added the -q option to dump which makes dump abort
+ whenever it needs operator attention. It should be
+ easier to use dump in scripts with this option.
+
Changes between versions 0.4b22 and 0.4b23 (released July 20, 2001)
===================================================================
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: dump.8.in,v 1.30 2001/07/19 09:03:44 stelian Exp $
+.\" $Id: dump.8.in,v 1.31 2001/08/16 09:37:59 stelian Exp $
.\"
.Dd __DATE__
.Dt DUMP 8
.Nd ext2 filesystem backup
.Sh SYNOPSIS
.Nm dump
-.Op Fl 0123456789ackMnSu
+.Op Fl 0123456789ackMnqSu
.Op Fl B Ar records
.Op Fl b Ar blocksize
.Op Fl d Ar density
.Dq operator
by means similar to a
.Xr wall 1 .
+.It Fl q
+Make
+.Nm
+abort immediately whenever operator attention is required,
+without prompting in case of write errors, tape changes etc.
.It Fl Q Ar file
Enable the Quick File Access support. Tape positions for each
inode are stored into the file
* Stelian Pop <pop@noos.fr>, 1999-2000
* Stelian Pop <pop@noos.fr> - AlcĂ´ve <www.alcove.fr>, 2000
*
- * $Id: dump.h,v 1.30 2001/08/13 16:17:52 stelian Exp $
+ * $Id: dump.h,v 1.31 2001/08/16 09:37:59 stelian Exp $
*/
/*-
extern char level; /* dump level of this dump */
extern int uflag; /* update flag */
extern int Mflag; /* multi-volume flag */
+extern int qflag; /* quit on errors flag */
extern char *eot_script; /* end of volume script fiag */
extern int diskfd; /* disk file descriptor */
extern int tapefd; /* tape file descriptor */
#ifndef lint
static const char rcsid[] =
- "$Id: main.c,v 1.56 2001/08/13 16:17:52 stelian Exp $";
+ "$Id: main.c,v 1.57 2001/08/16 09:37:59 stelian Exp $";
#endif /* not lint */
#include <config.h>
char level; /* dump level of this dump */
int uflag; /* update flag */
int Mflag; /* multi-volume flag */
+int qflag; /* quit on errors flag */
char *eot_script; /* end of volume script fiag */
int diskfd; /* disk file descriptor */
int tapefd; /* tape file descriptor */
#ifdef KERBEROS
"k"
#endif
- "Mn"
+ "Mnq"
#ifdef USE_QFA
"Q:"
#endif
notify = 1;
break;
+ case 'q':
+ qflag = 1;
+ break;
+
#ifdef USE_QFA
case 'Q': /* create tapeposfile */
gTapeposfile = optarg;
#ifdef KERBEROS
"k"
#endif
- "MnSu"
+ "MnqSu"
"] [-B records] [-b blocksize] [-d density]\n"
"\t%s [-e inode#,inode#,...] [-E file] [-f file] [-h level] "
#ifdef USE_QFA
#ifndef lint
static const char rcsid[] =
- "$Id: optr.c,v 1.25 2001/07/18 09:12:05 stelian Exp $";
+ "$Id: optr.c,v 1.26 2001/08/16 09:37:59 stelian Exp $";
#endif /* not lint */
#include <config.h>
FILE *mytty;
time_t firstprompt, when_answered;
+ if (qflag) {
+ msg("%s - forced abort\n", question);
+ dumpabort(0);
+ /* NOTREACHED */
+ }
+
firstprompt = time(NULL);
if ((mytty = fopen(_PATH_TTY, "r")) == NULL)