Bump file version.

This commit is contained in:
Moinak Ghosh 2012-08-26 15:01:18 +05:30
parent 5f41057f9c
commit 3b83bc2d4e
3 changed files with 5 additions and 2 deletions

View file

@ -25,6 +25,9 @@ modes in which multiple algorithms are tried per chunk to determine the best
one for the given chunk. Finally it supports 14 compression levels to allow one for the given chunk. Finally it supports 14 compression levels to allow
for ultra compression modes in some algorithms. for ultra compression modes in some algorithms.
NOTE: This utility is Not an archiver. It compresses only single files or
datastreams. To archive use something else like tar, cpio or pax.
Usage Usage
===== =====

2
main.c
View file

@ -501,7 +501,7 @@ start_decompress(const char *filename, const char *to_filename)
chunksize = ntohll(chunksize); chunksize = ntohll(chunksize);
level = ntohl(level); level = ntohl(level);
if (version != VERSION) { if (version < VERSION-1) {
fprintf(stderr, "Unsupported version: %d\n", version); fprintf(stderr, "Unsupported version: %d\n", version);
err = 1; err = 1;
goto uncomp_done; goto uncomp_done;

View file

@ -37,7 +37,7 @@ extern "C" {
#define CHDR_SZ 1 #define CHDR_SZ 1
#define ALGO_SZ 8 #define ALGO_SZ 8
#define MIN_CHUNK 2048 #define MIN_CHUNK 2048
#define VERSION 2 #define VERSION 3
#define FLAG_DEDUP 1 #define FLAG_DEDUP 1
#define UTILITY_VERSION 0.7 #define UTILITY_VERSION 0.7