X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Frestore.h;h=ba6af080534c1a93cd696c89af5a9a07a1d9428a;hp=81dfdc75d5a5e0c95e463619ee1af6fa82604659;hb=40df6a0e578b56977f18c2a960f3fd30c4c78e60;hpb=f48a055e452249091f3c6851a20431a8c87135b1 diff --git a/restore/restore.h b/restore/restore.h index 81dfdc7..ba6af08 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.17 2001/08/13 16:17:52 stelian Exp $ + * $Id: restore.h,v 1.23 2002/01/16 10:29:26 stelian Exp $ */ /* @@ -51,12 +51,16 @@ /* * Flags */ +extern int aflag; /* automatic volume increment */ 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 */ extern int Nflag; /* do not write the disk */ extern int uflag; /* unlink symlink targets */ extern int vflag; /* print out actions taken */ @@ -76,6 +80,7 @@ extern time_t dumptime; /* time that this dump begins */ extern time_t dumpdate; /* time that this dump was made */ extern char command; /* opration being performed */ extern FILE *terminal; /* file descriptor for the terminal input */ +extern int pipein; /* input is from a pipe */ extern char *tmpdir; /* name of temp directory */ extern int oldinofmt; /* reading tape with old format inodes */ extern int Bcvt; /* need byte swapping on inodes and dirs */ @@ -172,3 +177,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); \ + } +