Changeset 2395 in MondoRescue for branches/2.2.10/mondo/src/mondorestore


Ignore:
Timestamp:
Sep 12, 2009, 2:57:02 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Fix interface of evaluate_mountlist (remove 2nd param useless) and fix nuke mode which wasn't working.
  • Tries to add support for bzip2 and lzma initramfs (preliminary, not tested) for 2.6.30

(Backport from 2.2.9)

Location:
branches/2.2.10/mondo/src/mondorestore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/mondorestore/mondo-rstr-newt.c

    r2382 r2395  
    19241924    /** int **************************************************************/
    19251925    int i = 0;
    1926     int res = 0;
    19271926    int currline = 0;
    19281927    int finished = FALSE;
     
    19651964                          bEdit, bDelete, bReload, bCancel, bOK, NULL);
    19661965    while (!finished) {
    1967         flaws_str = evaluate_mountlist(mountlist, &res);
     1966        flaws_str = evaluate_mountlist(mountlist);
    19681967        if (strlen(flaws_str) > 0) {
    19691968            mr_asprintf(flaws_str_A, "%s", flaws_str + 1);
     
    19961995
    19971996        if (b_res == bOK) {
    1998             flaws_str = evaluate_mountlist(mountlist, &res);
    1999             mr_free(flaws_str);
    2000             if (!res) {
     1997            flaws_str = evaluate_mountlist(mountlist);
     1998            if (flaws_str != NULL) {
     1999                mr_free(flaws_str);
    20012000                finished =
    20022001                    ask_me_yes_or_no
  • branches/2.2.10/mondo/src/mondorestore/mondo-rstr-newt.h

    r2385 r2395  
    137137                   struct raidlist_itself *);
    138138void edit_raidrec_additional_vars(struct raid_device_record *);
    139 char *evaluate_mountlist(struct mountlist_itself *, int *);
     139char *evaluate_mountlist(struct mountlist_itself *);
    140140int find_device_in_mountlist(struct mountlist_itself *, char *);
    141141int find_next_free_index_in_disklist(struct list_of_disks *);
  • branches/2.2.10/mondo/src/mondorestore/mondorestore.c

    r2391 r2395  
    774774    mr_free(tmp);
    775775
    776     flaws_str = evaluate_mountlist(mountlist, &res);
    777     if (!res) {
     776    flaws_str = evaluate_mountlist(mountlist);
     777    if (flaws_str != NULL) {
    778778        mr_asprintf(tmp, "Mountlist analyzed. Result: \"%s\" Switch to Interactive Mode?", flaws_str);
    779779        mr_free(flaws_str);
     
    787787        }
    788788    }
    789     mr_free(flaws_str);
    790789
    791790    save_mountlist_to_disk(mountlist, g_mountlist_fname);
  • branches/2.2.10/mondo/src/mondorestore/mr-externs.h

    r2382 r2395  
    109109extern bool g_restoring_live_from_netfs;
    110110extern int fput_string_one_char_at_a_time(FILE *, char *);
    111 extern char *evaluate_mountlist(struct mountlist_itself *mountlist, int *res);
     111extern char *evaluate_mountlist(struct mountlist_itself *mountlist);
    112112
    113113
Note: See TracChangeset for help on using the changeset viewer.