#include "config.h" // IWYU pragma: keep #include "restore_globals.h" /* Global variables in use by restore */ int hflag = 1; /* restore heirarchies */ int mflag = 1; /* restore by name instead of inode number */ long dumpnum = 1; /* location of the dump on this tape */ int dirhash_size = 1; /* size of the directory hash table */ /* * Flags */ char *Afile; /* archive file */ int aflag; /* automatic volume increment */ int bflag; /* set input block size */ int cvtflag; /* convert from old to new tape format */ int Lflag; /* compare errors limit */ int Nflag; /* do not write the disk */ int oflag; /* do restore permissions without asking */ int uflag; /* unlink symlink targets */ int Vflag; /* multi-volume on a single device like CDROM */ int yflag; /* always try to recover from tape errors */ int nullflag; /* \0 separated output in t mode */ int ufs2flag; /* tape is a FreeBSD UFS2 dump */ char* bot_script; /* beginning of tape script */ dump_ino_t maxino; /* highest numbered inode in this file system */ long volno; /* current volume being read */ time_t dumptime; /* time that this dump begins */ time_t dumpdate; /* time that this dump was made */ char command; /* opration being performed */ FILE *terminal; /* file descriptor for the terminal input */ const char *tmpdir; /* name of temp directory */ int oldinofmt; /* reading tape with old format inodes */ int Bcvt; /* need byte swapping on inodes and dirs */ int compare_ignore_not_found; /* used to compare incremental dumps, */ /* so messages about "not found" files */ /* isn't seen. */ int compare_errors; /* did we encounter any compare errors? */ char filesys[PATH_MAX];/* name of dumped filesystem */ int wdfd; /* original working directory */ #ifdef USE_QFA FILE *gTapeposfp; char gTps[255]; long gSeekstart; int tapeposflag; int gTapeposfd; int createtapeposflag; unsigned long qfadumpdate; off_t curtapepos; #endif #ifdef TRANSSELINUX /*GAN6May06 SELinux MLS */ int transselinuxflag; char *transselinuxarg; #endif char inline_data[INLINE_DATA_MAX_INODE_SIZE + XATTR_MAXSIZE]; int pipein; /* input is from a pipe */ struct context curfile; int _do_not_use_both_restore_globals_and_dump_globals = 0;