Changeset 998 in MondoRescue for branches/stable/mondo/src/common
- Timestamp:
- Dec 7, 2006, 2:01:34 AM (18 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-archive.c
r949 r998 697 697 char *command; 698 698 char *use_lzo_sz; 699 char *use_gzip_sz; 699 700 char *use_comp_sz; 700 701 char *use_star_sz; … … 727 728 malloc_string(scratchdir); 728 729 malloc_string(use_lzo_sz); 730 malloc_string(use_gzip_sz); 729 731 malloc_string(use_star_sz); 730 732 malloc_string(use_comp_sz); … … 771 773 } else { 772 774 strcpy(use_lzo_sz, "no"); 775 } 776 if (bkpinfo->use_gzip) { 777 strcpy(use_gzip_sz, "yes"); 778 } else { 779 strcpy(use_gzip_sz, "no"); 773 780 } 774 781 if (bkpinfo->use_star) { … … 1003 1010 "mindi --custom %s %s/images '%s' '%s' \ 1004 1011 '%s' %ld '%s' '%s' '%s' \ 1005 '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d ", bkpinfo->tmpdir, // parameter #21012 '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d '%s'", bkpinfo->tmpdir, // parameter #2 1006 1013 bkpinfo->scratchdir, // parameter #3 1007 1014 bkpinfo->kernel_path, // parameter #4 … … 1020 1027 use_star_sz, // parameter #17 1021 1028 bkpinfo->internal_tape_block_size, // parameter #18 (LONG) 1022 bkpinfo->differential); // parameter #19 (INT) 1029 bkpinfo->differential, // parameter #19 (INT) 1030 use_gzip_sz); // parameter #20 (STRING) 1023 1031 1024 1032 // Watch it! This next line adds a parameter... … … 1075 1083 paranoid_free(tmp); 1076 1084 paranoid_free(use_lzo_sz); 1085 paranoid_free(use_gzip_sz); 1077 1086 paranoid_free(scratchdir); 1078 1087 paranoid_free(use_comp_sz); -
branches/stable/mondo/src/common/libmondo-files.c
r888 r998 1358 1358 if (bkpinfo->use_lzo) { 1359 1359 scratchLL = (scratchLL * 2) / 3; 1360 else if (bkpinfo->use_gzip) { 1361 scratchLL = (scratchLL * 2) / 3; 1360 1362 } else { 1361 1363 scratchLL = scratchLL / 2; -
branches/stable/mondo/src/common/libmondo-tools.c
r911 r998 649 649 strcpy(bkpinfo->zip_exe, "lzop"); 650 650 strcpy(bkpinfo->zip_suffix, "lzo"); 651 } else if (bkpinfo->use_gzip) { 652 strcpy(bkpinfo->zip_exe, "gzip"); 653 strcpy(bkpinfo->zip_suffix, "gz"); 651 654 } else if (bkpinfo->compression_level != 0) { 652 655 strcpy(bkpinfo->zip_exe, "bzip2"); … … 967 970 bkpinfo->restore_path[0] = '\0'; 968 971 bkpinfo->use_lzo = FALSE; 972 bkpinfo->use_gzip = FALSE; 969 973 bkpinfo->do_not_compress_these[0] = '\0'; 970 974 bkpinfo->verify_data = FALSE; … … 1122 1126 } 1123 1127 retval += whine_if_not_found("bzip2"); 1128 retval += whine_if_not_found("gzip"); 1124 1129 retval += whine_if_not_found("awk"); 1125 1130 retval += whine_if_not_found("md5sum"); -
branches/stable/mondo/src/common/libmondo-verify.c
r948 r998 337 337 if (bkpinfo->use_lzo) { 338 338 strcpy(sz_exe, "lzop"); 339 else if (bkpinfo->use_gzip) { 340 strcpy(sz_exe, "gzip"); 339 341 } else { 340 342 strcpy(sz_exe, "bzip2"); … … 519 521 strcpy(bkpinfo->zip_suffix, "lzo"); 520 522 bkpinfo->use_lzo = TRUE; 523 bkpinfo->use_gzip = FALSE; 524 } 525 if (strstr(tarball_fname, ".gz") 526 && strcmp(bkpinfo->zip_suffix, "gz")) { 527 log_msg(2, "OK, I'm going to start using gzip."); 528 strcpy(bkpinfo->zip_exe, "gzip"); 529 strcpy(bkpinfo->zip_suffix, "gz"); 530 bkpinfo->use_lzo = FALSE; 531 bkpinfo->use_gzip = TRUE; 521 532 } 522 533 if (strstr(tarball_fname, ".bz2") … … 526 537 strcpy(bkpinfo->zip_suffix, "bz2"); 527 538 bkpinfo->use_lzo = FALSE; 539 bkpinfo->use_gzip = FALSE; 528 540 } 529 541 unlink(outlog); -
branches/stable/mondo/src/common/mondostructures.h
r558 r998 398 398 */ 399 399 bool use_lzo; 400 401 /** 402 * If TRUE, then use @c gzip to compress data. 403 * This is used mainly in estimates. The backup/restore may or may 404 * not work if you do not set this. You should also set @p zip_exe 405 * and @p zip_suffix. 406 */ 407 bool use_gzip; 400 408 401 409 /**
Note:
See TracChangeset
for help on using the changeset viewer.