X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Frestore.h;h=a9dba7bfb539530da14453bd4513882459faf5fa;hb=e51470bfc05d83f82c37d24504220c7163bbd4c1;hp=a55a8fdfaa801570cf23ed39480c4792fa663451;hpb=9d49c83f5624f5cf13b7e27fd1f058b10dad50a3;p=dump.git diff --git a/restore/restore.h b/restore/restore.h index a55a8fd..a9dba7b 100644 --- a/restore/restore.h +++ b/restore/restore.h @@ -2,10 +2,10 @@ * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit * Remy Card , 1994-1997 - * Stelian Pop , 1999-2000 - * Stelian Pop - Alcôve , 2000 + * Stelian Pop , 1999-2000 + * Stelian Pop - Alcôve , 2000-2002 * - * $Id: restore.h,v 1.20 2001/12/24 15:53:41 stelian Exp $ + * $Id: restore.h,v 1.24 2002/01/25 14:59:53 stelian Exp $ */ /* @@ -51,11 +51,14 @@ /* * Flags */ +extern int aflag; /* automatic volume increment */ +extern char *Afile; /* archive file */ extern int cvtflag; /* convert from old to new tape format */ 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 */ @@ -68,6 +71,7 @@ extern char* bot_script; /* beginning of tape script */ /* * Global variables */ +extern char *host; /* name of the remote host */ extern char *dumpmap; /* map of inodes on this dump tape */ extern char *usedinomap; /* map of inodes that are in use on this fs */ extern dump_ino_t maxino; /* highest numbered inode in this file system */ @@ -88,6 +92,7 @@ extern int compare_ignore_not_found; /* isn't seen. */ extern int compare_errors; /* did we encounter any compare errors? */ extern char filesys[NAMELEN];/* name of dumped filesystem */ +extern dump_ino_t volinfo[]; /* which inode on which volume archive info */ /* * Each file in the file system is described by one of these entries @@ -175,3 +180,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); \ + } +