]> git.wh0rd.org - dump.git/commitdiff
Made dump accept -I 0 (unlimited read errors)
authorStelian Pop <stelian@popies.net>
Fri, 10 Jan 2003 10:31:06 +0000 (10:31 +0000)
committerStelian Pop <stelian@popies.net>
Fri, 10 Jan 2003 10:31:06 +0000 (10:31 +0000)
CHANGES
THANKS
dump/dump.8.in
dump/main.c
dump/traverse.c

diff --git a/CHANGES b/CHANGES
index ec6f5ef3f570e582d67b900f1e2ec0e7767a5e62..5410011a82a118a8113e0c423a07d254a68641c7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,4 @@
-$Id: CHANGES,v 1.203 2002/12/12 11:49:35 stelian Exp $
+$Id: CHANGES,v 1.204 2003/01/10 10:31:06 stelian Exp $
 
 Changes between versions 0.4b32 and 0.4b33 (released ?????????????????)
 =======================================================================
 
 Changes between versions 0.4b32 and 0.4b33 (released ?????????????????)
 =======================================================================
@@ -22,6 +22,11 @@ Changes between versions 0.4b32 and 0.4b33 (released ?????????????????)
        <ehem@m5p.com>, Greg Edwards <gedwards@users.sourceforge.net>.
        (fixes Debian bugs #147086 and #160305, Sourceforge bug #618699)
 
        <ehem@m5p.com>, Greg Edwards <gedwards@users.sourceforge.net>.
        (fixes Debian bugs #147086 and #160305, Sourceforge bug #618699)
 
+5.     Made dump's -I option accept the value '0' meaning all the
+       read errors will be ignored. This can be useful when running
+       dump from unattended sessions (like cron jobs). Thanks to
+       John I Wang <jiwang@users.sourceforge.net> for the suggestion.
+
 Changes between versions 0.4b31 and 0.4b32 (released November 15, 2002)
 =======================================================================
 
 Changes between versions 0.4b31 and 0.4b32 (released November 15, 2002)
 =======================================================================
 
diff --git a/THANKS b/THANKS
index 00dcc8c311868e4cc065107260e632a73f7cbacb..eaeb111ac0e422bfc8378890834a99671cb5bb0b 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -1,4 +1,4 @@
-$Id: THANKS,v 1.72 2002/12/12 11:49:35 stelian Exp $
+$Id: THANKS,v 1.73 2003/01/10 10:31:07 stelian Exp $
 
 Dump and restore were written by the people of the CSRG at the University
 of California, Berkeley.
 
 Dump and restore were written by the people of the CSRG at the University
 of California, Berkeley.
@@ -107,6 +107,7 @@ Matus Uhlar         uhlar@fantomas.sk
 Amith Varghese         amithv@yahoo.com
 Daniel Veillard                Daniel.Veillard@imag.fr
 Jason Venner           jason@idiom.com
 Amith Varghese         amithv@yahoo.com
 Daniel Veillard                Daniel.Veillard@imag.fr
 Jason Venner           jason@idiom.com
+John I Wang            jiwang@users.sourceforge.net
 Christian Weisgerber   naddy@mips.rhein-neckar.de
 Kim Yong-jun           loveyou@hackerslab.org
 John Yu                        jky@it.bu.edu
 Christian Weisgerber   naddy@mips.rhein-neckar.de
 Kim Yong-jun           loveyou@hackerslab.org
 John Yu                        jky@it.bu.edu
index 7bdf735056a5c72931897846bf176343895d83eb..cbb3177a9d46d5e0dcb375e882eb64811b3735fa 100644 (file)
@@ -30,7 +30,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\"    $Id: dump.8.in,v 1.46 2002/11/12 13:05:31 stelian Exp $
+.\"    $Id: dump.8.in,v 1.47 2003/01/10 10:31:10 stelian Exp $
 .\"
 .TH DUMP 8 "version __VERSION__ of __DATE__" BSD "System management commands"
 .SH NAME
 .\"
 .TH DUMP 8 "version __VERSION__ of __DATE__" BSD "System management commands"
 .SH NAME
@@ -224,6 +224,8 @@ is useful when running
 .B dump
 on an active filesystem where read errors simply indicate an inconsistency 
 between the mapping and dumping passes.
 .B dump
 on an active filesystem where read errors simply indicate an inconsistency 
 between the mapping and dumping passes.
+.IP
+A value of 0 means that all read errors will be ignored.
 .TP
 .BI \-j "compression level"
 Compress every block to be written on the tape using bzlib library. This option
 .TP
 .BI \-j "compression level"
 Compress every block to be written on the tape using bzlib library. This option
index 64246743b14f73e8559f1ed2d75f93fdeb371a54..57ab0033f0bc4bb6a67b788ebaf4503d3efbcc0c 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: main.c,v 1.78 2002/12/12 11:49:35 stelian Exp $";
+       "$Id: main.c,v 1.79 2003/01/10 10:31:10 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
 #endif /* not lint */
 
 #include <config.h>
@@ -355,7 +355,7 @@ main(int argc, char *argv[])
 
                case 'I':
                        breademax =
 
                case 'I':
                        breademax =
-                         numarg ("number of errors to ignore", 1L, 0L);
+                         numarg ("number of errors to ignore", 0L, 0L);
                        break;
 
 #ifdef KERBEROS
                        break;
 
 #ifdef KERBEROS
index 2613b5ef5d68b54c1544bfd89ab29359942230ce..00f03211e3da82babac98b85754f0d8dc7b7fd02 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: traverse.c,v 1.52 2002/12/09 10:53:59 stelian Exp $";
+       "$Id: traverse.c,v 1.53 2003/01/10 10:31:10 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
 #endif /* not lint */
 
 #include <config.h>
@@ -1346,7 +1346,7 @@ loop:
        else
                msg("short read error from %s: [block %d, ext2blk %d]: count=%d, got=%d\n",
                        disk, blkno, dbtofsb(sblock, blkno), size, cnt);
        else
                msg("short read error from %s: [block %d, ext2blk %d]: count=%d, got=%d\n",
                        disk, blkno, dbtofsb(sblock, blkno), size, cnt);
-       if (++breaderrors > breademax) {
+       if (breademax && ++breaderrors > breademax) {
                msg("More than %d block read errors from %d\n",
                        breademax, disk);
                broadcast("DUMP IS AILING!\n");
                msg("More than %d block read errors from %d\n",
                        breademax, disk);
                broadcast("DUMP IS AILING!\n");