Changeset 2350 in MondoRescue for branches/2.2.9/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- Aug 28, 2009, 2:24:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/mondorestore/mondorestore.c
r2290 r2350 777 777 /** malloc **/ 778 778 char tmp[MAX_STR_LEN]; 779 char *tmpA; 780 char *tmpB; 781 char *tmpC; 779 char *flaws_str = NULL; 782 780 783 781 assert(bkpinfo != NULL); 784 782 assert(mountlist != NULL); 785 783 assert(raidlist != NULL); 786 787 mr_asprintf(&tmpA, "%s", " ");788 mr_asprintf(&tmpB, "%s", " ");789 mr_asprintf(&tmpC, "%s", " ");790 784 791 785 log_msg(2, "nuke_mode --- starting"); … … 807 801 resize_mountlist_proportionately_to_suit_new_drives(mountlist); 808 802 } 809 if (!evaluate_mountlist(mountlist, tmpA, tmpB, tmpC)) { 803 flaws_str = evaluate_mountlist(mountlist, &res); 804 if (!res) { 810 805 sprintf(tmp, 811 "Mountlist analyzed. Result: \"%s %s %s\" Switch to Interactive Mode?", 812 tmpA, tmpB, tmpC); 806 "Mountlist analyzed. Result: \"%s\" Switch to Interactive Mode?", 807 flaws_str); 808 mr_free(flaws_str); 813 809 if (ask_me_yes_or_no(tmp)) { 814 810 retval = interactive_mode(mountlist, raidlist); … … 818 814 } 819 815 } 816 mr_free(flaws_str); 817 820 818 save_mountlist_to_disk(mountlist, g_mountlist_fname); 821 819 mvaddstr_and_log_it(1, 30, "Restoring Automatically");
Note:
See TracChangeset
for help on using the changeset viewer.