Changeset 1645 in MondoRescue for branches/2.2.5/mondo/src/mondoarchive/main.c
- Timestamp:
- Sep 24, 2007, 3:04:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/mondoarchive/main.c
r1644 r1645 146 146 extern int g_loglevel; 147 147 148 /* Reference to global bkpinfo */ 149 struct s_bkpinfo *bkpinfo; 150 148 151 /****************** subroutines used only by main.c ******************/ 149 152 … … 261 264 int main(int argc, char *argv[]) 262 265 { 263 struct s_bkpinfo *bkpinfo;264 266 char *tmp; 265 267 int res, retval; … … 422 424 } 423 425 424 if (pre_param_configuration( bkpinfo)) {426 if (pre_param_configuration()) { 425 427 fatal_error 426 428 ("Pre-param initialization phase failed. Please review the error messages above, make the specified changes, then try again. Exiting..."); … … 431 433 g_text_mode = FALSE; 432 434 setup_newt_stuff(); 433 res = interactively_obtain_media_parameters_from_user( bkpinfo,TRUE); /* yes, archiving */435 res = interactively_obtain_media_parameters_from_user(TRUE); /* yes, archiving */ 434 436 if (res) { 435 437 fatal_error … … 437 439 } 438 440 } else { 439 res = handle_incoming_parameters(argc, argv , bkpinfo);441 res = handle_incoming_parameters(argc, argv); 440 442 if (res) { 441 443 printf … … 449 451 450 452 /* Finish configuring global structures */ 451 if (post_param_configuration( bkpinfo)) {453 if (post_param_configuration()) { 452 454 fatal_error 453 455 ("Post-param initialization phase failed. Perhaps bad parameters were supplied to mondoarchive? Please review the documentation, error messages and logs. Exiting..."); … … 461 463 /* If we're meant to backup then backup */ 462 464 if (bkpinfo->backup_data) { 463 res = backup_data( bkpinfo);465 res = backup_data(); 464 466 retval += res; 465 467 if (res) { … … 473 475 /* If we're meant to verify then verify */ 474 476 if (bkpinfo->verify_data) { 475 res = verify_data( bkpinfo);477 res = verify_data(); 476 478 if (res < 0) { 477 479 sprintf(tmp, "%d difference%c found.", -res, … … 486 488 /* Offer to write floppy disk images to physical disks */ 487 489 if (bkpinfo->backup_data && !g_skip_floppies) { 488 res = offer_to_write_boot_floppies_to_physical_disks( bkpinfo);490 res = offer_to_write_boot_floppies_to_physical_disks(); 489 491 retval += res; 490 // res = offer_to_write_boot_ISO_to_physical_CD( bkpinfo);492 // res = offer_to_write_boot_ISO_to_physical_CD(); 491 493 // retval += res; 492 494 }
Note:
See TracChangeset
for help on using the changeset viewer.