Changeset 1639 in MondoRescue for branches/stable/mondo/src/common
- Timestamp:
- Sep 20, 2007, 10:20:45 PM (18 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-archive-EXT.h
r1594 r1639 22 22 extern int _move_files_to_stream(struct s_bkpinfo *bkpinfo, 23 23 char *files_to_add, ...); 24 extern int offer_to_write_boot_floppies_to_physical_disks(struct s_bkpinfo25 *bkpinfo);26 24 extern void pause_and_ask_for_cdr(int); 27 25 extern int slice_up_file_etc(struct s_bkpinfo *bkpinfo, -
branches/stable/mondo/src/common/libmondo-archive.c
r1638 r1639 58 58 #endif /* __FreeBSD__ */ 59 59 60 extern struct mr_ conf *mr_conf;60 extern struct mr_ar_conf *mr_conf; 61 61 62 62 /*@unused@*/ … … 534 534 char *tmp = NULL; 535 535 char *command = NULL; 536 char *use_lzo_sz = NULL;537 char *use_gzip_sz = NULL;538 char *use_comp_sz = NULL;539 char *use_star_sz = NULL;540 536 char *bootldr_str = NULL; 541 537 char *tape_device = NULL; … … 601 597 /* BERLIOS: This parameter is not used after? */ 602 598 mr_free(tape_size_sz); 603 if (bkpinfo->use_lzo) {604 mr_asprintf(&use_lzo_sz, "yes");605 } else {606 mr_asprintf(&use_lzo_sz, "no");607 }608 if (bkpinfo->use_gzip) {609 mr_asprintf(&use_gzip_sz, "yes");610 } else {611 mr_asprintf(&use_gzip_sz, "no");612 }613 if (bkpinfo->use_star) {614 mr_asprintf(&use_star_sz, "yes");615 } else {616 mr_asprintf(&use_star_sz, "no");617 }618 619 if (bkpinfo->compression_level > 0) {620 mr_asprintf(&use_comp_sz, "yes");621 } else {622 mr_asprintf(&use_comp_sz, "no");623 }624 599 625 600 mr_asprintf(&broken_bios_sz, "yes"); /* assume so */ … … 628 603 } else { 629 604 mr_asprintf(&cd_recovery_sz, "no"); 630 }631 /* Field shared between LILO/ELILO */632 if (bkpinfo->make_cd_use_lilo) {633 mr_asprintf(&use_lilo_sz, "yes");634 } else {635 mr_asprintf(&use_lilo_sz, "no");636 605 } 637 606 … … 896 865 } 897 866 if (bkpinfo->differential) { 898 mr_fprintf(fd1, "differential= 1\n");899 } else { 900 mr_fprintf(fd1, "differential= 0\n");867 mr_fprintf(fd1, "differential=yes\n"); 868 } else { 869 mr_fprintf(fd1, "differential=no\n"); 901 870 } 902 871 … … 1569 1538 * - @c call_burn_iso 1570 1539 * - @c call_make_iso 1571 * - @c make_cd_use_lilo1572 1540 * - @c manual_tray 1573 1541 * - @c nonbootable_backup -
branches/stable/mondo/src/common/libmondo-archive.h
r1594 r1639 24 24 int _move_files_to_stream(struct s_bkpinfo *bkpinfo, char *files_to_add, 25 25 ...); 26 int offer_to_write_boot_floppies_to_physical_disks(struct s_bkpinfo27 *bkpinfo);28 26 void pause_and_ask_for_cdr(int); 29 27 void set_bit_N_of_array(char *array, int N, bool true_or_false); … … 34 32 int verify_data(struct s_bkpinfo *bkpinfo); 35 33 void wipe_archives(char *d); 36 int write_image_to_floppy(char *device, char *datafile);37 int write_image_to_floppy_SUB(char *device, char *datafile);38 34 int write_iso_and_go_on(struct s_bkpinfo *bkpinfo, bool last_cd); 39 35 int write_final_iso_if_necessary(struct s_bkpinfo *bkpinfo); -
branches/stable/mondo/src/common/libmondo-filelist.c
r1627 r1639 41 41 42 42 int mondo_makefilelist(char *logfile, char *tmpdir, char *scratchdir, 43 char *include_paths, char *excp, intdifferential,43 char *include_paths, char *excp, bool differential, 44 44 char *userdef_filelist); 45 45 … … 1512 1512 */ 1513 1513 int mondo_makefilelist(char *logfile, char *tmpdir, char *scratchdir, 1514 char *include_paths, char *excp, intdifferential,1514 char *include_paths, char *excp, bool differential, 1515 1515 char *userdef_filelist) 1516 1516 { … … 1547 1547 make_hole_for_file(sz_filelist); 1548 1548 1549 if ( differential == 0) {1549 if (! differential) { 1550 1550 // restore last good datefile if it exists 1551 1551 mr_asprintf(&command, "cp -f %s.aborted %s", sz_datefile, … … 1568 1568 mr_msg(2, 1569 1569 "Warning - unable to find date of previous backup. Full backup instead."); 1570 differential = 0;1570 differential = FALSE; 1571 1571 time_of_last_full_backup = 0; 1572 1572 } else { -
branches/stable/mondo/src/common/libmondo-stream.c
r1638 r1639 40 40 extern char *MONDO_LOGFILE; 41 41 42 extern struct mr_ conf *mr_conf;42 extern struct mr_ar_conf *mr_conf; 43 43 44 44 /** … … 1106 1106 } 1107 1107 if ((g_tape_posK + length_of_incoming_file / 1024) >> 10 >= 1108 mediasize - (SLICE_SIZE * 4 / 1024)) {1108 mediasize - 16) { /* 4096(old SLICE_SIZE) * 4 / 1024) */ 1109 1109 log_it("g_tape_posK = %ld\nmediasize = %ld\n", g_tape_posK, 1110 1110 mediasize); -
branches/stable/mondo/src/common/libmondo-tools.c
r1638 r1639 743 743 bkpinfo->differential = FALSE; 744 744 bkpinfo->writer_speed = mr_conf->iso_burning_speed; 745 // patch by Herman Kuster746 bkpinfo->differential = 0;747 // patch end748 745 bkpinfo->compression_level = 3; 749 746 } -
branches/stable/mondo/src/common/mondostructures.h
r1628 r1639 553 553 bool wipe_media_first; 554 554 555 // patch by Herman Kuster 556 /** 557 * The differential level of this backup. Currently only 0 (full backup) and 1 555 /** 556 * The differential level of this backup. Currently only FALSE (full backup) and TRUE 558 557 * (files changed since last full backup) are supported. 559 558 */ 560 int differential; 561 // end patch 559 bool differential; 562 560 563 561 /**
Note:
See TracChangeset
for help on using the changeset viewer.