Changeset 3205 in MondoRescue for branches/3.2/mondo/src/common/libmondo-tools.c
- Timestamp:
- Dec 6, 2013, 3:40:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-tools.c
r3195 r3205 366 366 assert(bkpinfo != NULL); 367 367 368 bkpinfo->optimal_set_size = 369 (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type) ? 16 : 16) * 370 1024; 368 bkpinfo->optimal_set_size = (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type) ? 16 : 16) * 1024; 371 369 372 370 log_msg(1, "Post-param"); … … 383 381 if (run_program_and_log_output(tmp, 3)) { 384 382 mr_free(tmp); 385 fatal_error 386 ("Unable to open tape device. If you haven't specified it with -d, do so. If you already have, check your parameter. I think it's wrong."); 383 fatal_error("Unable to open tape device. If you haven't specified it with -d, do so. If you already have, check your parameter. I think it's wrong."); 387 384 } 388 385 mr_free(tmp); … … 451 448 // -m isn't supported by growisofs, BTW... 452 449 } else { 453 sprintf(bkpinfo->call_make_iso, 454 "%s %s -Z %s . 2>> _ERR_", 455 mondo_mkisofs_sz, 456 "", bkpinfo->media_device); 450 sprintf(bkpinfo->call_make_iso, "%s %s -Z %s . 2>> _ERR_", mondo_mkisofs_sz, "", bkpinfo->media_device); 457 451 } 458 452 mr_free(mondo_mkisofs_sz); … … 519 513 if (bkpinfo->manual_cd_tray) { 520 514 if (bkpinfo->call_before_iso[0] == '\0') { 521 sprintf(bkpinfo->call_before_iso, 522 "%s -o %s/"MONDO_TMPISOS" . 2>> _ERR_", 523 mondo_mkisofs_sz, bkpinfo->tmpdir); 524 } else { 515 sprintf(bkpinfo->call_before_iso, "%s -o %s/"MONDO_TMPISOS" . 2>> _ERR_", mondo_mkisofs_sz, bkpinfo->tmpdir); 516 } else { 525 517 mr_asprintf(call_before_iso_user, "%s", bkpinfo->call_before_iso); 526 518 sprintf(bkpinfo->call_before_iso, "( %s -o %s/"MONDO_TMPISOS" . 2>> _ERR_ ; %s )", mondo_mkisofs_sz, bkpinfo->tmpdir, call_before_iso_user); … … 1058 1050 return (0); 1059 1051 } else { 1060 mr_asprintf(command, "grep '%s .*' %s| cut -d' ' -f2,3,4,5", 1061 label, config_file); 1052 mr_asprintf(command, "grep '%s .*' %s| cut -d' ' -f2,3,4,5", label, config_file); 1062 1053 strcpy(value, call_program_and_get_last_line_of_output(command)); 1063 1054 mr_free(command);
Note:
See TracChangeset
for help on using the changeset viewer.