Changeset 2340 in MondoRescue for branches/2.2.10/mondo/src/mondoarchive/mondoarchive.c
- Timestamp:
- Aug 21, 2009, 1:53:49 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondoarchive/mondoarchive.c
r2325 r2340 36 36 extern t_bkptype g_backup_media_type; 37 37 extern int g_loglevel; 38 extern char *g_magicdev_command; 38 39 39 40 /** … … 71 72 char *tmp = NULL; 72 73 73 log_msg(0, "Mondo Archive v%s --- http://www.mondorescue.org", 74 PACKAGE_VERSION); 74 log_msg(0, "Mondo Archive v%s --- http://www.mondorescue.org", PACKAGE_VERSION); 75 75 log_msg(0, "running %s binaries", get_architecture()); 76 76 tmp = get_uname_m(); 77 77 log_msg(0, "running on %s architecture", tmp); 78 78 mr_free(tmp); 79 log_msg(0, 80 "-----------------------------------------------------------"); 81 log_msg(0, 82 "NB: Mondo logs almost everything, so don't panic if you see"); 83 log_msg(0, 84 "some error messages. Please read them carefully before you"); 85 log_msg(0, 86 "decide to break out in a cold sweat. Despite (or perhaps"); 87 log_msg(0, 88 "because of) the wealth of messages. some users are inclined"); 89 log_msg(0, 90 "to stop reading this log. If Mondo stopped for some reason,"); 91 log_msg(0, 92 "chances are it's detailed here. More than likely there's a"); 93 log_msg(0, 94 "message at the very end of this log that will tell you what"); 95 log_msg(0, 96 "is wrong. Please read it! -Devteam"); 97 log_msg(0, 98 "-----------------------------------------------------------"); 79 log_msg(0, "-----------------------------------------------------------"); 80 log_msg(0, "NB: Mondo logs almost everything, so don't panic if you see"); 81 log_msg(0, "some error messages. Please read them carefully before you"); 82 log_msg(0, "decide to break out in a cold sweat. Despite (or perhaps"); 83 log_msg(0, "because of) the wealth of messages. some users are inclined"); 84 log_msg(0, "to stop reading this log. If Mondo stopped for some reason,"); 85 log_msg(0, "chances are it's detailed here. More than likely there's a"); 86 log_msg(0, "message at the very end of this log that will tell you what"); 87 log_msg(0, "is wrong. Please read it! -Devteam"); 88 log_msg(0, "-----------------------------------------------------------"); 99 89 100 90 log_msg(0, "Zero..."); … … 107 97 log_msg(7, "Seven..."); 108 98 log_msg(8, "Eight..."); 109 printf("See %s for details of backup run.\n", MONDO_LOGFILE);110 99 } 111 100 112 113 extern char *g_magicdev_command;114 101 115 102 /** … … 174 161 printf("Initializing...\n"); 175 162 176 bkpinfo = (struct s_bkpinfo *)mr_malloc(sizeof(struct s_bkpinfo));177 163 init_bkpinfo(); 178 164 … … 316 302 317 303 if (pre_param_configuration()) { 318 fatal_error 319 ("Pre-param initialization phase failed. Please review the error messages above, make the specified changes, then try again. Exiting..."); 320 } 321 322 /* Process command line, if there is one. If not, ask user for info. */ 304 fatal_error("Pre-param initialization phase failed. Please review the error messages above, make the specified changes, then try again. Exiting..."); 305 } 306 307 /* Process command line, if there is one. If not, ask user for info. */ 323 308 if (argc == 1) { 324 309 res = interactively_obtain_media_parameters_from_user(TRUE); /* yes, archiving */ 325 310 if (res) { 326 fatal_error 327 ("Syntax error. Please review the parameters you have supplied and try again."); 311 fatal_error("Syntax error. Please review the parameters you have supplied and try again."); 328 312 } 329 313 } else { 330 314 res = handle_incoming_parameters(argc, argv); 331 315 if (res) { 332 printf 333 ("Errors were detected in the command line you supplied.\n"); 316 printf("Errors were detected in the command line you supplied.\n"); 334 317 printf("Please review the log file - %s\n", MONDO_LOGFILE ); 335 318 log_msg(1, "Mondoarchive will now exit.");
Note:
See TracChangeset
for help on using the changeset viewer.