#include "bacula.h"
#include "dird/dird.h"
#include "findlib/find.h"
+#include "lib/mntent_cache.h"
+#include "ch.h"
#if defined(HAVE_WIN32)
#define isatty(fd) (fd==0)
num_files, max_file_len, max_path_len,
trunc_fname, trunc_path, hard_links);
+ flush_mntent_cache();
+
term_msg();
close_memory_pool();
case 'W':
fo->flags |= FO_ENHANCEDWILD;
break;
- case 'Z': /* gzip compression */
- fo->flags |= FO_GZIP;
- fo->GZIP_level = *++p - '0';
- Dmsg1(200, "Compression level=%d\n", fo->GZIP_level);
+ case 'Z': /* compression */
+ p++; /* skip Z */
+ if (*p >= '0' && *p <= '9') {
+ fo->flags |= FO_COMPRESS;
+ fo->Compress_algo = COMPRESS_GZIP;
+ fo->Compress_level = *p - '0';
+ }
+ else if (*p == 'o') {
+ fo->flags |= FO_COMPRESS;
+ fo->Compress_algo = COMPRESS_LZO1X;
+ fo->Compress_level = 1; /* not used with LZO */
+ }
+ Dmsg2(200, "Compression alg=%d level=%d\n", fo->Compress_algo, fo->Compress_level);
break;
case 'X':
fo->flags |= FO_XATTR;