X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Frestore.h;h=0dea9cad3c8612211e78672b04bc22a4436efdc5;hb=83a6b4df0b7b7aecc0d3940549d0d480adff35a6;hp=6b48f93466413c242505ace9fb0e0213e803b8d8;hpb=05f23c0c51be02f2bb0a3706247027dc8fa17af1;p=dump.git diff --git a/restore/restore.h b/restore/restore.h index 6b48f93..0dea9ca 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.21 2002/01/11 08:54:14 stelian Exp $ + * $Id: restore.h,v 1.27 2003/03/30 15:40:40 stelian Exp $ */ /* @@ -25,11 +25,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -51,6 +47,8 @@ /* * 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 */ @@ -59,6 +57,7 @@ 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 oflag; /* do restore permissions without asking */ 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 */ @@ -69,6 +68,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 */ @@ -89,6 +89,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 @@ -131,7 +132,7 @@ struct entry { struct context { char *name; /* name of file */ dump_ino_t ino; /* inumber of file */ -#ifdef __linux__ +#if defined(__linux__) || defined(sunos) struct new_bsd_inode *dip; /* pointer to inode */ #else struct dinode *dip; /* pointer to inode */ @@ -175,6 +176,10 @@ extern char *gTapeposfile; extern char gTps[255]; extern long gSeekstart; extern int tapeposflag; +extern int gTapeposfd; +extern int createtapeposflag; +extern unsigned long qfadumpdate; +extern long long curtapepos; #endif /* USE_QFA */ #define do_compare_error \