Changeset 3292 in MondoRescue for branches/3.2/mondo/src
- Timestamp:
- May 27, 2014, 5:53:14 PM (11 years ago)
- Location:
- branches/3.2/mondo/src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-archive.c
r3288 r3292 843 843 mr_asprintf(command, "mindi %s --custom %s %s/images '%s' '%s' \ 844 844 '%s' %ld '%s' '%s' '%s' \ 845 '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d '%s' ", tmp2, bkpinfo->tmpdir, // parameter #2845 '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d '%s' 2>&1 > %s", tmp2, bkpinfo->tmpdir, // parameter #2 846 846 bkpinfo->scratchdir, // parameter #3 847 847 bkpinfo->kernel_path, // parameter #4 … … 864 864 use_lzma_sz, // parameter #20 (STRING) 865 865 value, // parameter #21 (STRING) 866 MONDO_LOGFILE, // redirect to log file 866 867 MONDO_LOGFILE); 867 868 … … 888 889 // popup_and_OK("Pausing"); 889 890 890 res = run_program_and_log_output(command, FALSE); 891 // BCO old call : 892 //res = run_program_and_log_output(command, FALSE); 893 res = run_external_binary_with_percentage_indicator_NEW("Calling MINDI for boot disk",command); 894 /* May crash now that we changed the call 891 895 update_evalcall_form(99); 896 */ 892 897 paranoid_free(command); 893 898 … … 929 934 } else { 930 935 log_to_screen("Mindi failed to create your boot+data disks."); 931 mr_asprintf(command, "grep 'Fatal error' /var/log/mindi.log");936 mr_asprintf(command, "grep 'Fatal error' %s", MINDI_LOGFILE); 932 937 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(command)); 933 938 mr_free(command); … … 1638 1643 mr_free(tmp3); 1639 1644 } 1645 mr_free(tmp); 1640 1646 mr_free(tmp2); 1641 1647 mr_free(tmp3); -
branches/3.2/mondo/src/common/libmondo-devices.c
r3291 r3292 2176 2176 } 2177 2177 setup_scratchdir(tmp); 2178 mr_free(tmp); 2178 2179 } 2179 2180 log_msg(3, "media type = %s", bkptype_to_string(bkpinfo->backup_media_type)); -
branches/3.2/mondo/src/common/libmondo-filelist.c
r3271 r3292 390 390 } 391 391 if (filelist->down) { 392 /* if (!(i++ %39999)) { update_evalcall_form(0); } */393 392 free_filelist(filelist->down); 394 393 filelist->down = NULL; … … 1331 1330 } 1332 1331 } 1333 mr_asprintf(find_excludes, " ");1334 1332 1335 1333 if (!depth) { 1334 mr_asprintf(find_excludes, " "); 1336 1335 while((token = mr_strtok(sth, delims, &lastpos)) != NULL) { 1337 1336 mr_strcat(find_excludes," -path %s -prune -o", token); -
branches/3.2/mondo/src/common/libmondo-files.c
r3278 r3292 278 278 // If we didn't get anything back, check whether mindi raised a fatal error 279 279 if (!kernel[0]) { 280 mr_asprintf(command, " %s", "grep 'Fatal error' /var/log/mindi.log");280 mr_asprintf(command, "grep 'Fatal error' %s", MINDI_LOGFILE); 281 281 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(command)); 282 282 if (strlen(tmp) > 1) { … … 284 284 mr_free(tmp); 285 285 mr_free(command); 286 fatal_error("Mindi gave a fatal error. Please check '/var/log/mindi.log'.");286 fatal_error("Mindi gave a fatal error. Please check "MINDI_LOGFILE); 287 287 } 288 288 mr_free(tmp); -
branches/3.2/mondo/src/common/libmondo-fork.c
r3205 r3292 649 649 650 650 for (sleep(1); command[0] != '\0'; sleep(1)) { 651 pcno = grab_percentage_from_last_line_of_file(MONDO_LOGFILE); 651 if (strstr(cmd,"mindi") != NULL) { 652 pcno = grab_percentage_from_last_line_of_file(MINDI_LOGFILE); 653 } else { 654 pcno = grab_percentage_from_last_line_of_file(MONDO_LOGFILE); 655 } 652 656 if (pcno < 0 || pcno > 100) { 653 657 log_msg(8, "Weird pc# %d", pcno); -
branches/3.2/mondo/src/common/libmondo-tools.c
r3278 r3292 391 391 #else 392 392 run_program_and_log_output("cat /proc/cpuinfo", 5); 393 run_program_and_log_output394 ("rpm -q newt newt-devel slang slang-devel ncurses ncurses-devel gcc",395 5);393 /* 394 run_program_and_log_output("rpm -q newt newt-devel slang slang-devel ncurses ncurses-devel gcc", 5); 395 */ 396 396 #endif 397 397 … … 985 985 log_to_screen("%s failed for some reason.", tmp); 986 986 mr_free(tmp); 987 log_to_screen("Please run that command by hand and examine /var/log/mindi.log");987 log_to_screen("Please run that command by hand and examine "MINDI_LOGFILE); 988 988 log_to_screen("for more information. Perhaps your /etc/fstab file is insane."); 989 989 log_to_screen("Perhaps Mindi's MakeMountlist() subroutine has a bug. We'll see."); -
branches/3.2/mondo/src/common/newt-specific.c
r3235 r3292 420 420 mr_free(bkpinfo->exclude_devs); 421 421 mr_free(bkpinfo->exclude_paths); 422 mr_free(bkpinfo->include_paths); 422 423 mr_free(bkpinfo->subdir); 423 424 /* Then free the structure */ … … 609 610 g_isoform_scale = newtScale(3, 3, 34, 100); 610 611 newtCenteredWindow(40, 7, ttl); 612 if (g_isoform_main != NULL) { 613 newtFormDestroy(g_isoform_main); 614 } 611 615 g_isoform_main = newtForm(NULL, NULL, 0); 612 616 g_isoform_timeline = newtLabel(1, 5, " "); -
branches/3.2/mondo/src/include/my-stuff.h
r3193 r3292 76 76 #define MINDI_CACHE_REL "var/cache/mindi" /* Should be coherent with mindi */ 77 77 #define MINDI_CACHE "/"MINDI_CACHE_REL 78 #define MINDI_LOGFILE "/var/log/mindi.log" 78 79 79 80 /** -
branches/3.2/mondo/src/lib/mr_mem.c
r3208 r3292 74 74 size_t n = 0; 75 75 76 if (*lineptr != NULL) { 77 /* free a variable which should be already free */ 78 mr_msg_int(1,line,file,"mr_getline_ found a non freed variable here"); 79 mr_free_int(lineptr,line,file); 80 } 76 81 ret = getline(lineptr,&n,fd); 77 82 if ((ret == -1) && (! feof(fd))) { … … 81 86 /* We reached end of file, allocating empty string */ 82 87 if (ret == -1) { 83 mr_asprintf_int(lineptr, line, file, ""); 88 mr_free_int(lineptr,line,file); 89 mr_asprintf_int(lineptr,line,file,""); 84 90 } 85 91 } -
branches/3.2/mondo/src/mondorestore/mondo-prep.c
r3287 r3292 45 45 46 46 FILE *g_fprep = NULL; 47 extern char *g_mondo_cfg_file; // where m *ndo-restore.cfg (the config file) is stored47 extern char *g_mondo_cfg_file; // where mondorestore.cfg (the config file) is stored 48 48 49 49 int g_partition_table_locked_up = 0; -
branches/3.2/mondo/src/mondorestore/mondo-rstr-tools.c
r3278 r3292 67 67 extern char *g_imagedevs_restthese; // of the imagedevs listed in FILELIST_IMAGEDEVS, 68 68 // restore only these 69 extern char *g_mondo_cfg_file; // where m *ndo-restore.cfg (the config file) is stored69 extern char *g_mondo_cfg_file; // where mondorestore.cfg (the config file) is stored 70 70 extern char *g_mountlist_fname; // where mountlist.txt (the mountlist file) is stored 71 71 extern char *g_mondo_home; // homedir of Mondo; usually /usr/local/share/mondo
Note:
See TracChangeset
for help on using the changeset viewer.