Ignore:
Timestamp:
Oct 1, 2007, 12:50:28 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Try to fix the issue with large exclude list (> 1000 chars) Some variables created after exclude_path (indirectly) were not sized big enough to handle them.
  • Remove useless .keep file
  • remove temporary.iso name remaining and suppress a warning in log trying to remove it in the tmpdir
  • missing extern bkpinfo in newt-specific.c
  • Attempt to fix #191 (allow edition of mountlist in compare mode)

(merge -r1662:1669 $SVN_M/branches/2.2.5)

File:
1 edited

Legend:

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

    r1663 r1670  
    2121/* Reference to global bkpinfo */
    2222extern struct s_bkpinfo *bkpinfo;
     23
     24extern char *g_mountlist_fname;
    2325
    2426//static char cvsid[] = "$Id$";
     
    506508{
    507509    int retval = 0;
     510    int res = 0;
    508511    long q = 0L;
    509512    char *tmp = NULL;
     
    533536
    534537    read_cfg_file_into_bkpinfo(g_mondo_cfg_file);
     538
     539    /* edit_mountlist if wanted */
     540    iamhere("About to edit mountlist");
     541    if (g_text_mode) {
     542        save_mountlist_to_disk(mountlist, g_mountlist_fname);
     543        mr_asprintf(&tmp, "%s %s", find_my_editor(), g_mountlist_fname);
     544        res = system(tmp);
     545        mr_free(tmp);
     546        load_mountlist(mountlist, g_mountlist_fname);
     547    } else {
     548        res = edit_mountlist(g_mountlist_fname, mountlist, raidlist);
     549    }
     550    iamhere("Finished editing mountlist");
     551    if (res) {
     552        paranoid_MR_finish(1);
     553    }
     554    save_mountlist_to_disk(mountlist, g_mountlist_fname);
     555    save_raidlist_to_raidtab(raidlist, RAIDTAB_FNAME);
     556
    535557    g_current_media_number = 1;
    536558    mvaddstr_and_log_it(1, 30, _("Comparing Automatically"));
Note: See TracChangeset for help on using the changeset viewer.