-char *disk; /* name of the disk file */
-char tape[NAME_MAX]; /* name of the tape file */
-char *tapeprefix; /* prefix of the tape file */
-char *dumpdates; /* name of the file containing dump date information*/
-char *temp; /* name of the file for doing rewrite of dumpdates */
-char lastlevel; /* dump level of previous dump */
-char level; /* dump level of this dump */
-int uflag; /* update flag */
-int Mflag; /* multi-volume flag */
-int diskfd; /* disk file descriptor */
-int tapefd; /* tape file descriptor */
-int pipeout; /* true => output to standard output */
-ino_t curino; /* current inumber; used globally */
-int newtape; /* new tape flag */
-int density; /* density in 0.1" units */
-long tapesize; /* estimated tape size, blocks */
-long tsize; /* tape size in 0.1" units */
-long asize; /* number of 0.1" units written on current tape */
-int etapes; /* estimated number of tapes */
-int nonodump; /* if set, do not honor UF_NODUMP user flags */
-int unlimited; /* if set, write to end of medium */
-
-int notify; /* notify operator flag */
-int blockswritten; /* number of blocks written on current tape */
-int tapeno; /* current tape number */
-time_t tstart_writing; /* when started writing the first tape block */
-time_t tend_writing; /* after writing the last tape block */
+extern char *host; /* name of the remote host */
+extern const char *disk; /* name of the disk file */
+extern char tape[MAXPATHLEN];/* name of the tape file */
+extern char *tapeprefix; /* prefix of the tape file */
+extern char *dumpdates; /* name of the file containing dump date information*/
+extern char lastlevel[NUM_STR_SIZE];/* dump level of previous dump */
+extern char level[NUM_STR_SIZE];/* dump level of this dump */
+extern int Afile; /* archive file descriptor */
+extern int AfileActive; /* Afile flag */
+extern int zipflag; /* which compression method */
+extern int uflag; /* update flag */
+extern int mflag; /* dump metadata only if possible flag */
+extern int Mflag; /* multi-volume flag */
+extern int qflag; /* quit on errors flag */
+extern int vflag; /* verbose flag */
+extern int breademax; /* maximum number of bread errors before we quit */
+extern char *eot_script; /* end of volume script fiag */
+extern int diskfd; /* disk file descriptor */
+extern int tapefd; /* tape file descriptor */
+extern int pipeout; /* true => output to standard output */
+extern int fifoout; /* true => output to fifo */
+extern dump_ino_t curino; /* current inumber; used globally */
+extern int newtape; /* new tape flag */
+extern int density; /* density in 0.1" units */
+extern long tapesize; /* estimated tape size, blocks */
+extern long tsize; /* tape size in 0.1" units */
+extern long asize; /* number of 0.1" units written on current tape */
+extern int etapes; /* estimated number of tapes */
+extern int nonodump; /* if set, do not honor UF_NODUMP user flags */
+extern int unlimited; /* if set, write to end of medium */
+extern int compressed; /* if set, dump is to be compressed */
+extern long long bytes_written;/* total bytes written to tape */
+extern long uncomprblks; /* uncompressed blocks written to tape */
+extern int notify; /* notify operator flag */
+extern int blockswritten; /* number of blocks written on current tape */
+extern int tapeno; /* current tape number */
+extern time_t tstart_writing; /* when started writing the first tape block */
+extern time_t tend_writing; /* after writing the last tape block */