X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=compat%2Finclude%2Fprotocols%2Fdumprestore.h;h=236912000dc5ea1999cd4cbc9ddfc44d334af6e6;hb=4d5ed2f38cb1dce0244a05f94c8aec7f725a1f33;hp=a29190863b946833ba62945d97f4b19e8414b648;hpb=d6967896bc4e18f9b4359a2ef5be5c0f1bcc456a;p=dump.git diff --git a/compat/include/protocols/dumprestore.h b/compat/include/protocols/dumprestore.h index a291908..2369120 100644 --- a/compat/include/protocols/dumprestore.h +++ b/compat/include/protocols/dumprestore.h @@ -5,7 +5,7 @@ * Stelian Pop , 1999-2000 * Stelian Pop - AlcĂ´ve , 2000 * - * $Id: dumprestore.h,v 1.9 2000/12/21 11:14:53 stelian Exp $ + * $Id: dumprestore.h,v 1.10 2001/02/21 16:13:05 stelian Exp $ */ /* @@ -118,5 +118,13 @@ union u_spcl { */ #define DR_NEWHEADER 0x0001 /* new format tape header */ #define DR_NEWINODEFMT 0x0002 /* new format inodes on tape */ +#define DR_COMPRESSED 0x0080 /* dump tape is compressed */ + +/* used for compressed dump tapes */ +struct tapebuf { + int32_t clen; /* compressed length of data */ + int32_t unclen; /* uncompressed length of data */ + char buf[0]; /* the data */ +}; #endif /* !_DUMPRESTORE_H_ */