Changeset 1086 in MondoRescue for trunk/mondo/src/mondorestore/mondo-rstr-compare.c
- Timestamp:
- Feb 2, 2007, 11:21:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/mondorestore/mondo-rstr-compare.c
r1081 r1086 57 57 insist_on_this_cd_number(bkpinfo, (++g_current_media_number)); 58 58 } else { 59 log_msg(2, "No CD's left. No biggiefiles left. No problem.");59 mr_msg(2, "No CD's left. No biggiefiles left. No problem."); 60 60 return (0); 61 61 } … … 77 77 mr_asprintf(&bigfile_fname, biggiestruct.filename); 78 78 79 log_msg(2, "biggiestruct.filename = %s", bigfile_fname);80 log_msg(2, "biggiestruct.checksum = %s", checksum);79 mr_msg(2, "biggiestruct.filename = %s", bigfile_fname); 80 mr_msg(2, "biggiestruct.checksum = %s", checksum); 81 81 82 82 if (!g_text_mode) { … … 88 88 /* BERLIOS: Useless ? 89 89 if (!checksum[0]) { 90 log_msg(2, "Warning - %s has no checksum", bigfile_fname_ptr);90 mr_msg(2, "Warning - %s has no checksum", bigfile_fname_ptr); 91 91 } */ 92 92 if (!strncmp(bigfile_fname, "/dev/", 5)) { 93 log_msg(2, _("Ignoring device %s"), bigfile_fname);93 mr_msg(2, _("Ignoring device %s"), bigfile_fname); 94 94 return(0); 95 95 } else { … … 98 98 MNT_RESTORING, bigfile_fname); 99 99 } 100 log_msg(2, command);100 mr_msg(2, command); 101 101 paranoid_system("cat /tmp/errors >> /tmp/mondo-restore.log 2> /dev/null"); 102 102 if (system(command)) { … … 108 108 mr_free(command); 109 109 if (!(fin = fopen("/tmp/md5sum.txt", "r"))) { 110 log_msg(2, "Unable to open /tmp/md5sum.txt; can't get live checksum");110 mr_msg(2, "Unable to open /tmp/md5sum.txt; can't get live checksum"); 111 111 mr_free(bigfile_fname); 112 112 return (1); … … 124 124 } 125 125 if (!strcmp(checksum, original_cksum) != 0) { 126 log_msg(1, "bigfile #%ld ('%s') ... OK", bigfileno + 1, bigfile_fname);127 } else { 128 log_msg(1, "bigfile #%ld ('%s') ... changed", bigfileno + 1, bigfile_fname);126 mr_msg(1, "bigfile #%ld ('%s') ... OK", bigfileno + 1, bigfile_fname); 127 } else { 128 mr_msg(1, "bigfile #%ld ('%s') ... changed", bigfileno + 1, bigfile_fname); 129 129 retval++; 130 130 } … … 162 162 163 163 assert(bkpinfo != NULL); 164 log_msg(1, "Comparing biggiefiles");164 mr_msg(1, "Comparing biggiefiles"); 165 165 166 166 if (length_of_file(BIGGIELIST) < 6) { 167 log_msg(1,167 mr_msg(1, 168 168 "OK, really teeny-tiny biggielist; not comparing biggiefiles"); 169 169 return (0); … … 171 171 noof_biggiefiles = count_lines_in_file(BIGGIELIST); 172 172 if (noof_biggiefiles <= 0) { 173 log_msg(1, "OK, no biggiefiles; not comparing biggiefiles");173 mr_msg(1, "OK, no biggiefiles; not comparing biggiefiles"); 174 174 return (0); 175 175 } … … 183 183 for (bigfileno = 0; bigfileno < noof_biggiefiles; bigfileno++) { 184 184 mr_asprintf(&tmp, "Comparing big file #%ld", bigfileno + 1); 185 log_msg(1, tmp);185 mr_msg(1, tmp); 186 186 update_progress_form(tmp); 187 187 mr_free(tmp); … … 322 322 "Differences found while processing fileset #%d ", 323 323 current_tarball_number); 324 log_msg(1, tmp);324 mr_msg(1, tmp); 325 325 mr_free(tmp); 326 326 } … … 402 402 "/archives/slice* > /dev/null 2> /dev/null") 403 403 == 0) { 404 log_msg(2, "OK, I think I'm done with tarballs...");404 mr_msg(2, "OK, I think I'm done with tarballs..."); 405 405 mr_free(tarball_fname); 406 406 break; 407 407 } 408 log_msg(2, "OK, I think it's time for another CD...");408 mr_msg(2, "OK, I think it's time for another CD..."); 409 409 g_current_media_number++; 410 410 mr_free(progress_str); … … 590 590 mr_free(tmp); 591 591 592 log_msg(2, "calling popup_changelist_from_file()");592 mr_msg(2, "calling popup_changelist_from_file()"); 593 593 popup_changelist_from_file("/tmp/changed.files"); 594 log_msg(2, "Returning from popup_changelist_from_file()");594 mr_msg(2, "Returning from popup_changelist_from_file()"); 595 595 } 596 596 } else { … … 650 650 if (length_of_file("/tmp/changed.txt") > 2 651 651 && length_of_file("/tmp/changed.files") > 2) { 652 log_msg(0,652 mr_msg(0, 653 653 "Type 'less /tmp/changed.files' to see which files don't match the archives"); 654 log_msg(2, "Calling popup_changelist_from_file()");654 mr_msg(2, "Calling popup_changelist_from_file()"); 655 655 popup_changelist_from_file("/tmp/changed.files"); 656 log_msg(2, "Returned from popup_changelist_from_file()");656 mr_msg(2, "Returned from popup_changelist_from_file()"); 657 657 } 658 658
Note:
See TracChangeset
for help on using the changeset viewer.