Changeset 1664


Ignore:
Timestamp:
Sep 27, 2007, 12:39:46 PM (12 years ago)
Author:
bruno
Message:

Attempt to fix #191 (allow edition of mountlist in compare mode)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/mondorestore/mondo-rstr-compare.c

    r1645 r1664  
    6969/* Reference to global bkpinfo */
    7070extern struct s_bkpinfo *bkpinfo;
     71
     72extern char *g_mountlist_fname;
    7173
    7274//static char cvsid[] = "$Id$";
     
    591593{
    592594    int retval = 0;
     595    int res = 0;
    593596    long q;
    594597    char *tmp;
     
    618621
    619622    read_cfg_file_into_bkpinfo(g_mondo_cfg_file);
     623
     624    /* edit_mountlist if wanted */
     625    iamhere("About to edit mountlist");
     626    if (g_text_mode) {
     627        save_mountlist_to_disk(mountlist, g_mountlist_fname);
     628        sprintf(tmp, "%s %s", find_my_editor(), g_mountlist_fname);
     629        res = system(tmp);
     630        load_mountlist(mountlist, g_mountlist_fname);
     631    } else {
     632        res = edit_mountlist(g_mountlist_fname, mountlist, raidlist);
     633    }
     634    iamhere("Finished editing mountlist");
     635    if (res) {
     636        paranoid_MR_finish(1);
     637    }
     638    save_mountlist_to_disk(mountlist, g_mountlist_fname);
     639    save_raidlist_to_raidtab(raidlist, RAIDTAB_FNAME);
     640
    620641    g_current_media_number = 1;
    621642    mvaddstr_and_log_it(1, 30, "Comparing Automatically");
Note: See TracChangeset for help on using the changeset viewer.