Changeset 1670 in MondoRescue for branches/stable/mondo/src/mondorestore/mondo-rstr-compare.c
- Timestamp:
- Oct 1, 2007, 12:50:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-rstr-compare.c
r1663 r1670 21 21 /* Reference to global bkpinfo */ 22 22 extern struct s_bkpinfo *bkpinfo; 23 24 extern char *g_mountlist_fname; 23 25 24 26 //static char cvsid[] = "$Id$"; … … 506 508 { 507 509 int retval = 0; 510 int res = 0; 508 511 long q = 0L; 509 512 char *tmp = NULL; … … 533 536 534 537 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 535 557 g_current_media_number = 1; 536 558 mvaddstr_and_log_it(1, 30, _("Comparing Automatically"));
Note:
See TracChangeset
for help on using the changeset viewer.