Changeset 1108 in MondoRescue for branches/stable/mondo/src/mondorestore/mondo-rstr-compare.c
- Timestamp:
- Feb 8, 2007, 12:10:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-rstr-compare.c
r1080 r1108 78 78 sprintf(tmp_ptr, 79 79 "No CD's left. No biggiefiles left. No prob, Bob."); 80 log_msg(2, tmp_ptr);80 mr_msg(2, tmp_ptr); 81 81 return (0); 82 82 } … … 95 95 strcpy(bigfile_fname_ptr, biggiestruct.filename); 96 96 97 log_msg(2, "biggiestruct.filename = %s", biggiestruct.filename);98 log_msg(2, "biggiestruct.checksum = %s", biggiestruct.checksum);97 mr_msg(2, "biggiestruct.filename = %s", biggiestruct.filename); 98 mr_msg(2, "biggiestruct.checksum = %s", biggiestruct.checksum); 99 99 100 100 sprintf(tmp_ptr, "Comparing %s", bigfile_fname_ptr); … … 105 105 } 106 106 if (!checksum[0]) { 107 log_msg(2, "Warning - %s has no checksum", bigfile_fname_ptr);107 mr_msg(2, "Warning - %s has no checksum", bigfile_fname_ptr); 108 108 } 109 109 if (!strncmp(bigfile_fname_ptr, "/dev/", 5)) { … … 114 114 MNT_RESTORING, bigfile_fname_ptr); 115 115 } 116 log_msg(2, command_ptr);116 mr_msg(2, command_ptr); 117 117 paranoid_system 118 118 ("cat /tmp/errors >> /tmp/mondo-restore.log 2> /dev/null"); … … 123 123 } else { 124 124 if (!(fin = fopen("/tmp/md5sum.txt", "r"))) { 125 log_msg(2,125 mr_msg(2, 126 126 "Unable to open /tmp/md5sum.txt; can't get live checksum"); 127 127 original_cksum[0] = '\0'; … … 147 147 retval++; 148 148 } 149 log_msg(1, tmp_ptr);149 mr_msg(1, tmp_ptr); 150 150 if (retval) { 151 151 if (!(fout = fopen("/tmp/changed.txt", "a"))) { … … 188 188 189 189 assert(bkpinfo != NULL); 190 log_msg(1, "Comparing biggiefiles");190 mr_msg(1, "Comparing biggiefiles"); 191 191 192 192 if (length_of_file(BIGGIELIST) < 6) { 193 log_msg(1,193 mr_msg(1, 194 194 "OK, really teeny-tiny biggielist; not comparing biggiefiles"); 195 195 return (0); … … 197 197 noof_biggiefiles = count_lines_in_file(BIGGIELIST); 198 198 if (noof_biggiefiles <= 0) { 199 log_msg(1, "OK, no biggiefiles; not comparing biggiefiles");199 mr_msg(1, "OK, no biggiefiles; not comparing biggiefiles"); 200 200 return (0); 201 201 } … … 208 208 for (bigfileno = 0; bigfileno < noof_biggiefiles; bigfileno++) { 209 209 sprintf(tmp, "Comparing big file #%ld", bigfileno + 1); 210 log_msg(1, tmp);210 mr_msg(1, tmp); 211 211 update_progress_form(tmp); 212 212 res = compare_a_biggiefile(bkpinfo, bigfileno); … … 341 341 "Differences found while processing fileset #%d ", 342 342 current_tarball_number); 343 log_msg(1, tmp);343 mr_msg(1, tmp); 344 344 } 345 345 unlink(logfile); … … 421 421 "/archives/slice* > /dev/null 2> /dev/null") 422 422 == 0) { 423 log_msg(2, "OK, I think I'm done with tarballs...");423 mr_msg(2, "OK, I think I'm done with tarballs..."); 424 424 break; 425 425 } 426 log_msg(2, "OK, I think it's time for another CD...");426 mr_msg(2, "OK, I think it's time for another CD..."); 427 427 g_current_media_number++; 428 428 sprintf(progress_str, "Comparing with %s #%d ", … … 603 603 log_to_screen(tmp); 604 604 605 log_msg(2, "calling popup_changelist_from_file()");605 mr_msg(2, "calling popup_changelist_from_file()"); 606 606 popup_changelist_from_file("/tmp/changed.files"); 607 log_msg(2, "Returning from popup_changelist_from_file()");607 mr_msg(2, "Returning from popup_changelist_from_file()"); 608 608 } 609 609 } else { … … 658 658 if (length_of_file("/tmp/changed.txt") > 2 659 659 && length_of_file("/tmp/changed.files") > 2) { 660 log_msg(0,660 mr_msg(0, 661 661 "Type 'less /tmp/changed.files' to see which files don't match the archives"); 662 log_msg(2, "Calling popup_changelist_from_file()");662 mr_msg(2, "Calling popup_changelist_from_file()"); 663 663 popup_changelist_from_file("/tmp/changed.files"); 664 log_msg(2, "Returned from popup_changelist_from_file()");664 mr_msg(2, "Returned from popup_changelist_from_file()"); 665 665 } 666 666
Note:
See TracChangeset
for help on using the changeset viewer.