BSD 4_3_Reno release
[unix-history] / usr / src / sbin / dump / dump.h
index bef6e47..7b7fa12 100644 (file)
@@ -1,23 +1,26 @@
 /*
 /*
- * "@(#)dump.h 1.8 (Berkeley) %G%"
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)dump.h      5.8 (Berkeley) 2/15/90
  */
  */
+
 #define        NI              16
 #define MAXINOPB       (MAXBSIZE / sizeof(struct dinode))
 #define MAXNINDIR      (MAXBSIZE / sizeof(daddr_t))
 
 #define        NI              16
 #define MAXINOPB       (MAXBSIZE / sizeof(struct dinode))
 #define MAXNINDIR      (MAXBSIZE / sizeof(daddr_t))
 
-#include <stdio.h>
-#include <ctype.h>
 #include <sys/param.h>
 #include <sys/stat.h>
 #include <sys/param.h>
 #include <sys/stat.h>
-#include <sys/fs.h>
-#include <sys/inode.h>
-#include <dumprestor.h>
-#include <dir.h>
+#include <ufs/fs.h>
+#include <ufs/dinode.h>
+#include <protocols/dumprestore.h>
+#include <ufs/dir.h>
 #include <utmp.h>
 #include <utmp.h>
-#include <time.h>
-#include <signal.h>
-int (*signal())();
+#include <sys/signal.h>
 #include <fstab.h>
 #include <fstab.h>
+#include <stdio.h>
+#include <ctype.h>
 
 #define        MWORD(m,i)      (m[(unsigned)(i-1)/NBBY])
 #define        MBIT(i)         (1<<((unsigned)(i-1)%NBBY))
 
 #define        MWORD(m,i)      (m[(unsigned)(i-1)/NBBY])
 #define        MBIT(i)         (1<<((unsigned)(i-1)%NBBY))
@@ -37,6 +40,8 @@ char  *nodmap;
 char   *disk;          /* name of the disk file */
 char   *tape;          /* name of the tape file */
 char   *increm;        /* name of the file containing incremental information*/
 char   *disk;          /* name of the disk file */
 char   *tape;          /* name of the tape file */
 char   *increm;        /* name of the file containing incremental information*/
+char   *temp;          /* name of the file for doing rewrite of increm */
+char   lastincno;      /* increment number of previous dump */
 char   incno;          /* increment number */
 int    uflag;          /* update flag */
 int    fi;             /* disk file descriptor */
 char   incno;          /* increment number */
 int    uflag;          /* update flag */
 int    fi;             /* disk file descriptor */
@@ -60,12 +65,14 @@ time_t      tstart_writing; /* when started writing the first tape block */
 char   *processname;
 struct fs *sblock;     /* the file system super block */
 char   buf[MAXBSIZE];
 char   *processname;
 struct fs *sblock;     /* the file system super block */
 char   buf[MAXBSIZE];
+long   dev_bsize;
 
 char   *ctime();
 char   *prdate();
 long   atol();
 int    mark();
 int    add();
 
 char   *ctime();
 char   *prdate();
 long   atol();
 int    mark();
 int    add();
+int    dirdump();
 int    dump();
 int    tapsrec();
 int    dmpspc();
 int    dump();
 int    tapsrec();
 int    dmpspc();
@@ -84,30 +91,17 @@ int interrupt();            /* in case operator bangs on console */
 /*
  *     Exit status codes
  */
 /*
  *     Exit status codes
  */
-#define        X_FINOK         1       /* normal exit */
+#define        X_FINOK         0       /* normal exit */
 #define        X_REWRITE       2       /* restart writing from the check point */
 #define        X_ABORT         3       /* abort all of dump; don't attempt checkpointing*/
 
 #define        X_REWRITE       2       /* restart writing from the check point */
 #define        X_ABORT         3       /* abort all of dump; don't attempt checkpointing*/
 
-#ifdef DEBUG
-#define        OINCREM "./ddate"               /*old format incremental info*/
-#define        NINCREM "./dumpdates"           /*new format incremental info*/
-#else not DEBUG
-#define        OINCREM "/etc/ddate"            /*old format incremental info*/
-#define        NINCREM "/etc/dumpdates"        /*new format incremental info*/
-#endif
-
-#define        TAPE    "/dev/rmt8"             /* default tape device */
-#define        DISK    "/dev/rrp1g"            /* default disk */
 #define        OPGRENT "operator"              /* group entry to notify */
 #define DIALUP "ttyd"                  /* prefix for dialups */
 
 #define        OPGRENT "operator"              /* group entry to notify */
 #define DIALUP "ttyd"                  /* prefix for dialups */
 
-#define        MAXFSTAB                32
-struct fstab   fstab[MAXFSTAB];
 struct fstab   *fstabsearch(); /* search in fs_file and fs_spec */
 struct fstab   *fstabsearch(); /* search in fs_file and fs_spec */
-int    nfstab;
 
 /*
 
 /*
- *     The contents of the file NINCREM is maintained both on
+ *     The contents of the file _PATH_DUMPDATES is maintained both on
  *     a linked list, and then (eventually) arrayified.
  */
 struct idates {
  *     a linked list, and then (eventually) arrayified.
  */
 struct idates {