+#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 */
+#define DR_EXTATTRIBUTES 0x8000
+
+/*
+ * extattributes inode info
+ */
+#define EXT_REGULAR 0
+#define EXT_MACOSFNDRINFO 1
+#define EXT_MACOSRESFORK 2
+#define EXT_XATTR 3
+
+/*
+ * 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;
+#ifdef sunos
+ char buf;
+#else
+ char buf[0]; /* the data */
+#endif
+};