]> git.wh0rd.org - dump.git/blobdiff - restore/restore.h
Added CVS Id.
[dump.git] / restore / restore.h
index 1cef2d90e4bc6385a08d98968d598d770cc0aa56..87a03972ce42320da4d6486bf2122e725d2f60a3 100644 (file)
@@ -1,7 +1,8 @@
 /*
  *     Ported to Linux's Second Extended File System as part of the
  *     dump and restore backup suit
- *     Remy Card <card@Linux.EU.Org>, 1994, 1995, 1996
+ *     Remy Card <card@Linux.EU.Org>, 1994-1997
+ *      Stelian Pop <pop@cybercable.fr>, 1999 
  *
  */
 
@@ -42,7 +43,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- *     @(#)restore.h   8.3 (Berkeley) 9/13/94
+ * $Id: restore.h,v 1.4 1999/10/11 13:31:13 stelian Exp $
  */
 
 /*
@@ -54,13 +55,14 @@ extern int  dflag;          /* print out debugging info */
 extern int     hflag;          /* restore heirarchies */
 extern int     mflag;          /* restore by name instead of inode number */
 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 */
 /*
  * Global variables
  */
 extern char    *dumpmap;       /* map of inodes on this dump tape */
-extern char    *usedinomap;    /* map of inodes to be deleted */
+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 long    dumpnum;        /* location of the dump on this tape */
 extern long    volno;          /* current volume being read */
@@ -69,6 +71,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 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 */
 extern int     compare_ignore_not_found;
@@ -76,7 +79,6 @@ extern int    compare_ignore_not_found;
                                /* so messages about "not found" files */
                                /* isn't seen. */
 extern char    *filesys;       /* name of dumped filesystem */
-extern char    *tmpdir;        /* name of temp directory */
 
 /*
  * Each file in the file system is described by one of these entries
@@ -149,8 +151,8 @@ typedef struct rstdirdesc RST_DIR;
 #define        SETINO(ino, map) \
        map[(u_int)((ino) - 1) / NBBY] |=  1 << ((u_int)((ino) - 1) % NBBY)
 
-#define dprintf                if (dflag) fprintf
-#define vprintf                if (vflag) fprintf
+#define Dprintf                if (dflag) fprintf
+#define Vprintf                if (vflag) fprintf
 
 #define GOOD 1
 #define FAIL 0