]> git.wh0rd.org - dump.git/blobdiff - restore/restore.h
noos -> popies.net
[dump.git] / restore / restore.h
index a55a8fdfaa801570cf23ed39480c4792fa663451..6a929c2275c02f1c1fc6619533748f6d137cdbc9 100644 (file)
@@ -2,10 +2,10 @@
  *     Ported to Linux's Second Extended File System as part of the
  *     dump and restore backup suit
  *     Remy Card <card@Linux.EU.Org>, 1994-1997
- *     Stelian Pop <pop@noos.fr>, 1999-2000
- *     Stelian Pop <pop@noos.fr> - Alcôve <www.alcove.fr>, 2000
+ *     Stelian Pop <stelian@popies.net>, 1999-2000
+ *     Stelian Pop <stelian@popies.net> - Alcôve <www.alcove.com>, 2000-2002
  *
- *     $Id: restore.h,v 1.20 2001/12/24 15:53:41 stelian Exp $
+ *     $Id: restore.h,v 1.22 2002/01/16 09:32:14 stelian Exp $
  */
 
 /*
@@ -56,6 +56,7 @@ extern int    bflag;          /* set input block size */
 extern int     dflag;          /* print out debugging info */
 extern int     hflag;          /* restore heirarchies */
 extern int     lflag;          /* assume remote filename is a regular file */
+extern int     Lflag;          /* compare errors limit */
 extern int     mflag;          /* restore by name instead of inode number */
 extern int     Mflag;          /* multi-volume restore */
 extern int     Vflag;          /* multi-volume on a single device like CDROM */
@@ -175,3 +176,10 @@ extern char        gTps[255];
 extern long    gSeekstart;
 extern int     tapeposflag;
 #endif /* USE_QFA */
+
+#define do_compare_error \
+       if (++compare_errors >= Lflag && Lflag) { \
+               printf("Compare errors limit reached, exiting...\n"); \
+               exit(2); \
+       }
+