-$Id: CHANGES,v 1.140 2001/10/02 09:41:24 stelian Exp $
+$Id: CHANGES,v 1.141 2001/11/11 00:06:39 stelian Exp $
Changes between versions 0.4b24 and 0.4b25 (released ??????????????????)
========================================================================
1. Added a mini howto from Patrick Walsh in the examples
directory.
+2. Minor man pages syntax corrections. Thanks to
+ Chris Danis <screechco@home.com> for reporting the bugs.
+
+3. Added a script from David B. Peterson <dave@toppledwagon.com>
+ to the examples section. It features dumping several
+ filesystems to a remote tape drive upon ssh.
+
+4. Added a patch provided by Richard Jones <rich@annexia.org>
+ which allows BRADEMAX (number of read errors tolerated by
+ dump) to be adjusted using the -I option.
+
Changes between versions 0.4b23 and 0.4b24 (released September 12, 2001)
========================================================================
-$Id: THANKS,v 1.47 2001/09/06 09:00:31 stelian Exp $
+$Id: THANKS,v 1.48 2001/11/11 00:06:39 stelian Exp $
Dump and restore were written by the people of the CSRG at the University
of California, Berkeley.
Isaac Chuang ike@isl.stanford.edu
Rainer Clasen bj@ncc.cicely.de
W. Reilly Cooley wcooley@nakedape.cc
+Chris Danis screechco@home.com
Abhijit Dasgupta abhijit@ans.net
John R. Dennison gerdesas@users.sourceforge.net
Andreas Dilger adilger@turbolinux.com
Helmut Jarausch jarausch@igpm.rwth-aachen.de
Eric Jergensen eric@dvns.com
Jeff Johnson jbj@redhat.com
+Richard Jones rich@annexia.org
Charles Karney karney@users.sourceforge.net
Henry Katz hkatz@hkatz.dialup.access.net
Klaus Kudielka kkudielk@cacofonix.nt.tuwien.ac.at
Nuno Oliveira nuno@eq.uc.pt
Brent Olson night@halcyon.com
Jerry Peters gapeters@worldnet.att.net
+David B. Peterson dave@toppledwagon.com
Dave Platt dplatt@snulbug.mtview.ca.us
Kenneth Porter shiva@well.com
Graham Reed greed@users.sourceforge.net
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: dump.8.in,v 1.33 2001/11/10 23:50:59 stelian Exp $
+.\" $Id: dump.8.in,v 1.34 2001/11/11 00:06:39 stelian Exp $
.\"
.Dd __DATE__
.Dt DUMP 8
.Op Fl f Ar file
.Op Fl F Ar script
.Op Fl h Ar level
+.Op Fl I Ar nr errors
.Op Fl j Ar compression level
.Op Fl L Ar label
.Op Fl Q Ar file
.Nm
reverts back to the real user ID and the real group ID before
running the script.
+.It Fl I Ar nr errors
+By default,
+.Nm
+will ignore the first 32 read errors on the file
+system before asking for operator intervention. You can change this
+using this flag to any value. This is useful when running
+.Nm
+on an active filesystem where read errors simply indicate an
+inconsistency between the mapping and dumping passes.
.It Fl j Ar compression level
Compress every block to be written on the tape using bzlib library. This
option will work only when dumping to a file or pipe or, when dumping
end of dump,
tape write error,
tape open error or
-disk read error (if there is more than a threshold of 32).
+disk read error (if there is more than a threshold of nr errors).
In addition to alerting all operators implied by the
.Fl n
key,
It might be considered a bug that this version of dump can only handle ext2
filesystems. Specifically, it does not work with FAT filesystems.
.Pp
-Fewer than 32 read errors on the filesystem are ignored. If noticing
+Fewer than 32 read errors (change this with -I)
+on the filesystem are ignored. If noticing
read errors is important, the output from dump can be parsed to look for lines
that contain the text 'read error'.
.Pp
* Stelian Pop <pop@noos.fr>, 1999-2000
* Stelian Pop <pop@noos.fr> - AlcĂ´ve <www.alcove.fr>, 2000
*
- * $Id: dump.h,v 1.32 2001/08/16 15:24:21 stelian Exp $
+ * $Id: dump.h,v 1.33 2001/11/11 00:06:39 stelian Exp $
*/
/*-
extern int uflag; /* update flag */
extern int Mflag; /* multi-volume flag */
extern int qflag; /* quit on errors flag */
+extern int breademax; /* maximum number of bread errors before we quit */
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.60 2001/09/06 09:00:32 stelian Exp $";
+ "$Id: main.c,v 1.61 2001/11/11 00:06:39 stelian Exp $";
#endif /* not lint */
#include <config.h>
int uflag; /* update flag */
int Mflag; /* multi-volume flag */
int qflag; /* quit on errors flag */
+int breademax = 32; /* maximum number of bread errors before we quit */
char *eot_script; /* end of volume script fiag */
int diskfd; /* disk file descriptor */
int tapefd; /* tape file descriptor */
#endif /* USE_QFA */
while ((ch = getopt(argc, argv,
- "0123456789aB:b:cd:e:E:f:F:h:"
+ "0123456789aB:b:cd:e:E:f:F:h:I:"
#ifdef HAVE_BZLIB
"j::"
#endif
break;
#endif /* HAVE_BZLIB */
+ case 'I':
+ breademax =
+ numarg ("number of errors to ignore", 1L, 0L);
+ break;
+
#ifdef KERBEROS
case 'k':
dokerberos = 1;
"MnqSu"
"] [-B records] [-b blocksize] [-d density]\n"
"\t%s [-e inode#,inode#,...] [-E file] [-f file] [-h level] "
+ "[-I nr errors] "
#ifdef HAVE_BZLIB
"[-j zlevel] "
#endif
#ifndef lint
static const char rcsid[] =
- "$Id: traverse.c,v 1.38 2001/08/17 09:55:09 stelian Exp $";
+ "$Id: traverse.c,v 1.39 2001/11/11 00:06:39 stelian Exp $";
#endif /* not lint */
#include <config.h>
/*
* Read a chunk of data from the disk.
* Try to recover from hard errors by reading in sector sized pieces.
- * Error recovery is attempted at most BREADEMAX times before seeking
+ * Error recovery is attempted at most breademax times before seeking
* consent from the operator to continue.
*/
int breaderrors = 0;
-#define BREADEMAX 32
void
bread(daddr_t blkno, char *buf, int size)
else
msg("short read error from %s: [block %d]: count=%d, got=%d\n",
disk, blkno, size, cnt);
- if (++breaderrors > BREADEMAX) {
+ if (++breaderrors > breademax) {
msg("More than %d block read errors from %d\n",
- BREADEMAX, disk);
+ breademax, disk);
broadcast("DUMP IS AILING!\n");
msg("This is an unrecoverable error.\n");
if (!query("Do you want to attempt to continue?")){