X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Frestore.h;h=dba1ddcdf6a4f2cff466e3ad4af89a2a0ee1810d;hb=95c74f382492999827000f544fcb6844150cda81;hp=11d38ec2a6836478e2cca9506d42f5cf660b7ee6;hpb=d6967896bc4e18f9b4359a2ef5be5c0f1bcc456a;p=dump.git diff --git a/restore/restore.h b/restore/restore.h index 11d38ec..dba1ddc 100644 --- a/restore/restore.h +++ b/restore/restore.h @@ -5,7 +5,7 @@ * Stelian Pop , 1999-2000 * Stelian Pop - AlcĂ´ve , 2000 * - * $Id: restore.h,v 1.12 2000/12/21 11:14:54 stelian Exp $ + * $Id: restore.h,v 1.15 2001/04/10 12:46:53 stelian Exp $ */ /* @@ -61,12 +61,13 @@ extern int Nflag; /* do not write the disk */ extern int uflag; /* unlink symlink targets */ extern int vflag; /* print out actions taken */ extern int yflag; /* always try to recover from tape errors */ +extern int zflag; /* tape is in compressed format */ /* * Global variables */ extern char *dumpmap; /* map of inodes on this dump tape */ extern char *usedinomap; /* map of inodes that are in use on this fs */ -extern ino_t maxino; /* highest numbered inode in this file system */ +extern dump_ino_t maxino; /* highest numbered inode in this file system */ extern long dumpnum; /* location of the dump on this tape */ extern long volno; /* current volume being read */ extern long ntrec; /* number of TP_BSIZE records per tape block */ @@ -92,7 +93,7 @@ struct entry { u_char e_namlen; /* length of this name */ char e_type; /* type of this entry, see below */ short e_flags; /* status flags, see below */ - ino_t e_ino; /* inode number in previous file sys */ + dump_ino_t e_ino; /* inode number in previous file sys */ long e_index; /* unique index (for dumpped table) */ struct entry *e_parent; /* pointer to parent directory (..) */ struct entry *e_sibling; /* next element in this directory (.) */ @@ -124,7 +125,7 @@ struct entry { */ struct context { char *name; /* name of file */ - ino_t ino; /* inumber of file */ + dump_ino_t ino; /* inumber of file */ #ifdef __linux__ struct new_bsd_inode *dip; /* pointer to inode */ #else @@ -160,3 +161,13 @@ typedef struct rstdirdesc RST_DIR; #define GOOD 1 #define FAIL 0 + +#ifdef USE_QFA +#define QFA_MAGIC "495115637697" +#define QFA_VERSION "1.0" +FILE *gTapeposfp; +char *gTapeposfile; +char gTps[255]; +long gSeekstart; +int tapeposflag; +#endif /* USE_QFA */