]> git.wh0rd.org - dump.git/blobdiff - compat/include/protocols/dumprestore.h
Added bzip2 compression to dump.
[dump.git] / compat / include / protocols / dumprestore.h
index a2750cde08c2f9c413879821fe5992581ad1054a..49e14f1f6bce9651fc4d02c904745804f1efa2a9 100644 (file)
@@ -5,7 +5,7 @@
  *      Stelian Pop <pop@noos.fr>, 1999-2000
  *     Stelian Pop <pop@noos.fr> - AlcĂ´ve <www.alcove.fr>, 2000
  *
- *     $Id: dumprestore.h,v 1.12 2001/03/20 10:02:48 stelian Exp $
+ *     $Id: dumprestore.h,v 1.14 2001/08/16 15:24:21 stelian Exp $
  */
 
 /*
@@ -101,7 +101,8 @@ union u_spcl {
                char    c_host[NAMELEN];    /* name of dumpped host */
                int32_t c_flags;            /* additional information */
                int32_t c_firstrec;         /* first record on volume */
-               int32_t c_spare[32];        /* reserved for future uses */
+               int32_t c_ntrec;            /* blocksize on volume */
+               int32_t c_spare[31];        /* reserved for future uses */
        } s_spcl;
 } u_spcl;
 #define spcl u_spcl.s_spcl
@@ -122,6 +123,12 @@ union u_spcl {
 #define DR_NEWINODEFMT 0x0002  /* new format inodes on tape */
 #define DR_COMPRESSED  0x0080  /* dump tape is compressed */
 
+/*
+ * compression flags for the tapebuf header.
+ */
+#define COMPRESS_ZLIB  0
+#define COMPRESS_BZLIB 1
+
 /* used for compressed dump tapes */
 struct tapebuf {
        unsigned int    compressed:1;