+#define DR_COMPRESSED 0x0080 /* dump tape is compressed */
+#define DR_METAONLY 0x0100 /* only the metadata of the inode has
+ been dumped */
+#define DR_INODEINFO 0x0002 /* TS_END header contains c_inos information */
+
+
+/*
+ * compression flags for the tapebuf header.
+ */
+#define COMPRESS_ZLIB 0
+#define COMPRESS_BZLIB 1
+#define COMPRESS_LZO 2
+
+/* used for compressed dump tapes */
+struct tapebuf {
+ unsigned int compressed:1;
+ unsigned int flags:3;
+ unsigned int length:28;
+ char buf[0]; /* the data */
+};