Changeset 3193 in MondoRescue for branches/3.1/mondo/src/mondorestore/mondo-rstr-newt.c
- Timestamp:
- Sep 29, 2013, 9:31:34 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/mondo/src/mondorestore/mondo-rstr-newt.c
r3161 r3193 212 212 mr_strip_spaces(size_str); 213 213 214 strip_spaces(device_str);214 mr_strip_spaces(device_str); 215 215 if (b_res == bOK) { 216 216 if (device_str[strlen(device_str) - 1] == '/') { … … 480 480 mr_free(tmp); 481 481 mr_free(prompt); 482 mr_free(prompt);483 482 return; 484 483 } … … 530 529 531 530 assert(raidrec != NULL); 532 533 if (system("grep Pers /proc/mdstat > /tmp/raid-personalities.txt 2> /dev/null")) { 534 // FIXME 535 } 531 paranoid_system("grep Pers /proc/mdstat > /tmp/raid-personalities.txt 2> /dev/null"); 536 532 personalities = last_line_of_file("/tmp/raid-personalities.txt"); 537 533 mr_asprintf(prompt, "Please enter the RAID level you want. %s", personalities); … … 583 579 mr_free(tmp); 584 580 mr_free(prompt); 581 585 582 raidrec->raid_level = out; 586 583 #endif … … 607 604 int pos = 0; 608 605 609 /** buffers ***********************************************************/610 606 assert(mountlist != NULL); 611 607 assert(raidlist != NULL); … … 931 927 strcpy(g_strings_of_flist_window[i - 1], tmp1); 932 928 mr_free(tmp1); 929 933 930 dummybool = g_is_path_selected[i]; 934 931 g_is_path_selected[i] = g_is_path_selected[i - 1]; … … 1683 1680 1684 1681 /** buffers ***********************************************************/ 1685 char title_of_editraidForm_window[MAX_STR_LEN];1682 char *title_of_editraidForm_window = NULL; 1686 1683 1687 1684 /** newt **************************************************************/ … … 1713 1710 memcpy((void *) &bkp_raidrec, (void *) raidrec, 1714 1711 sizeof(struct vinum_plex)); 1715 sprintf(title_of_editraidForm_window, "%s.p%i", 1716 raidlist->el[currline].volname, currline2); 1712 mr_asprintf(title_of_editraidForm_window, "%s.p%i", raidlist->el[currline].volname, currline2); 1717 1713 newtPushHelpLine 1718 1714 (" Please select a subdisk to edit, or edit this plex's parameters"); 1719 1715 newtOpenWindow(13, 3, 54, 18, title_of_editraidForm_window); 1716 mr_free(title_of_editraidForm_window); 1717 1720 1718 for (;;) { 1721 1719 int i; … … 1888 1886 strcpy(raidrec->additional_vars.el[lino].value, p); 1889 1887 } 1888 mr_free(header); 1889 mr_free(comment); 1890 1890 mr_free(p); 1891 1891 } … … 1953 1953 mr_asprintf(tmp, "%-24s %-24s %-8s %s", "Device", "Mountpoint", "Format", "Size (MB)"); 1954 1954 headerMsg = newtLabel(2, 1, tmp); 1955 mr_free(tmp); 1956 1955 1957 flawsLabelA = newtLabel(2, 13, " "); 1956 1958 flawsLabelB = newtLabel(2, 14, " "); … … 2044 2046 } 2045 2047 newtFormDestroy(myForm); 2046 2047 mr_free(flaws_str_A);2048 mr_free(flaws_str_B);2049 mr_free(flaws_str_C);2050 mr_free(tmp);2051 2052 2048 newtPopWindow(); 2053 2049 newtPopHelpLine(); … … 2829 2825 disklist->el[currline].index = atoi(sz_res); 2830 2826 } 2827 2831 2828 redraw_disklist(disklist, keylist, partitionsListbox); 2832 2829 mr_free(sz_res);
Note:
See TracChangeset
for help on using the changeset viewer.