Changeset 1107 in MondoRescue for branches/stable/mondo/src/common/libmondo-files.c
- Timestamp:
- Feb 8, 2007, 12:09:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-files.c
r1100 r1107 183 183 // assert_string_is_neither_NULL_nor_zerolength(filename); 184 184 if (lstat(filename, &buf)) { 185 log_msg(20, "%s does not exist", filename);185 mr_msg(20, "%s does not exist", filename); 186 186 return (FALSE); 187 187 } else { 188 log_msg(20, "%s exists", filename);188 mr_msg(20, "%s exists", filename); 189 189 return (TRUE); 190 190 } … … 355 355 strcpy(output, incoming); 356 356 if (output[0] != '\0' && does_file_exist(output)) { 357 log_msg(4, "find_home_of_exe () --- Found %s at %s", fname,357 mr_msg(4, "find_home_of_exe () --- Found %s at %s", fname, 358 358 incoming); 359 359 } else { 360 360 output[0] = '\0'; 361 log_msg(4, "find_home_of_exe() --- Could not find %s", fname);361 mr_msg(4, "find_home_of_exe() --- Could not find %s", fname); 362 362 } 363 363 mr_free(incoming); … … 462 462 *p = '\0'; 463 463 } 464 // log_msg(2, "lastline='%s', ", p, lastline);464 // mr_msg(2, "lastline='%s', ", p, lastline); 465 465 if (!p) { 466 466 return (0); … … 789 789 strcpy(sz_res, call_program_and_get_last_line_of_output(command)); 790 790 file_len_K = atol(sz_res); 791 log_msg(4, "%s --> %s --> %ld", command, sz_res, file_len_K);791 mr_msg(4, "%s --> %s --> %ld", command, sz_res, file_len_K); 792 792 return (file_len_K); 793 793 } … … 828 828 ("Cannot open biggielist. OK, so estimate is based on filesets only."); 829 829 } else { 830 log_msg(4, "Reading it...");830 mr_msg(4, "Reading it..."); 831 831 for (fgets(fname, MAX_STR_LEN, fin); !feof(fin); 832 832 fgets(fname, MAX_STR_LEN, fin)) { … … 853 853 if (file_len_K > 0) { 854 854 scratchL += file_len_K; 855 log_msg(4, "%s --> %ld K", fname, file_len_K);855 mr_msg(4, "%s --> %ld K", fname, file_len_K); 856 856 } 857 857 sprintf(comment, 858 858 "After adding %s, scratchL+%ld now equals %ld", fname, 859 859 file_len_K, scratchL); 860 log_msg(4, comment);860 mr_msg(4, comment); 861 861 if (feof(fin)) { 862 862 break; … … 1074 1074 "Copying Mondo's core files to the scratch directory"); 1075 1075 1076 log_msg(4, "g_mondo_home='%s'", g_mondo_home);1076 mr_msg(4, "g_mondo_home='%s'", g_mondo_home); 1077 1077 if (strlen(g_mondo_home) < 2) { 1078 1078 find_and_store_mondoarchives_home(g_mondo_home); … … 1081 1081 bkpinfo->scratchdir); 1082 1082 1083 log_msg(4, "command = %s", command);1083 mr_msg(4, "command = %s", command); 1084 1084 if (run_program_and_log_output(command, 1)) { 1085 1085 fatal_error("Failed to copy Mondo's stuff to scratchdir"); … … 1393 1393 "#!/bin/sh\n\nmount /boot > /dev/null 2> /dev/null\ngrub-install $@\nres=$?\nsync;sync;sync\nexit $res\n"); 1394 1394 paranoid_fclose(fout); 1395 log_msg(2, "Created %s", outfile);1395 mr_msg(2, "Created %s", outfile); 1396 1396 sprintf(tmp, "chmod +x %s", outfile); 1397 1397 paranoid_system(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.