Changeset 541 in MondoRescue for branches/stable/mondo/mondo/common/libmondo-stream.c
- Timestamp:
- May 13, 2006, 8:47:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/libmondo-stream.c
r501 r541 100 100 #include "mondostructures.h" 101 101 #include "libmondo-devices.h" 102 #include "lib-common-externs.h" 102 103 #include "libmondo-stream.h" 103 104 #include "libmondo-string-EXT.h" 104 105 #include "libmondo-files-EXT.h" 105 #include " newt-specific-EXT.h"106 #include "libmondo-gui-EXT.h" 106 107 #include "libmondo-fork-EXT.h" 107 108 #include "libmondo-tools-EXT.h" … … 518 519 // log_it("g_current_media_number = %d", g_current_media_number); 519 520 sprintf(tmp, 520 _("When the tape drive goes quiet, please insert volume %d in this series."),521 "When the tape drive goes quiet, please insert volume %d in this series.", 521 522 tapeno); 522 523 popup_and_OK(tmp); 523 open_evalcall_form( _("Waiting while the tape drive settles"));524 } else { 525 open_evalcall_form( _("Waiting while the tape drive rewinds"));524 open_evalcall_form("Waiting while the tape drive settles"); 525 } else { 526 open_evalcall_form("Waiting while the tape drive rewinds"); 526 527 } 527 528 … … 730 731 bkpinfo->internal_tape_block_size))) { 731 732 log_OS_error(g_tape_fifo); 732 log_to_screen( _("Cannot openin stream device"));733 log_to_screen("Cannot openin stream device"); 733 734 return (1); 734 735 } 735 log_to_screen( _("Reading stream"));736 log_to_screen("Reading stream"); 736 737 log_it("stream device = '%s'", bkpinfo->media_device); 737 738 /* skip data disks */ 738 739 open_evalcall_form("Skipping data disks on stream"); 739 log_to_screen( _("Skipping data disks on stream"));740 log_to_screen("Skipping data disks on stream"); 740 741 if (!(fout = fopen(outfname, "w"))) { 741 742 log_OS_error(outfname); 742 log_to_screen( _("Cannot openout datadisk all.tar.gz file"));743 log_to_screen("Cannot openout datadisk all.tar.gz file"); 743 744 return (-1); 744 745 } 745 746 if (!(datablock = (char *) malloc(256 * 1024))) { 746 log_to_screen( _("Unable to malloc 256*1024"));747 log_to_screen("Unable to malloc 256*1024"); 747 748 exit(1); 748 749 } … … 821 822 return (0); 822 823 } else { 823 log_to_screen( _("Failed to openout to cdstream (fifo)"));824 log_to_screen("Failed to openout to cdstream (fifo)"); 824 825 return (1); 825 826 } … … 854 855 open_device_via_buffer(tapedev, 'w', internal_tape_block_size))) { 855 856 log_OS_error(g_tape_fifo); 856 log_to_screen( _("Cannot openin stream device"));857 log_to_screen("Cannot openin stream device"); 857 858 return (1); 858 859 } … … 997 998 if (!fout) { 998 999 log_OS_error(outfname); 999 log_to_screen( _("Cannot openout file"));1000 log_to_screen("Cannot openout file"); 1000 1001 return (1); 1001 1002 } … … 1055 1056 } 1056 1057 if (strcmp(temp_cksum, actual_cksum)) { 1057 sprintf(tmp, _("actual cksum=%s; recorded cksum=%s"), actual_cksum,1058 sprintf(tmp, "actual cksum=%s; recorded cksum=%s", actual_cksum, 1058 1059 temp_cksum); 1059 1060 log_to_screen(tmp); 1060 sprintf(tmp, _("%s (%ld K) is corrupt on tape"), temp_fname,1061 sprintf(tmp, "%s (%ld K) is corrupt on tape", temp_fname, 1061 1062 (long) orig_size >> 10); 1062 1063 log_to_screen(tmp); … … 1210 1211 log_it("mediasize = %ld", mediasize); 1211 1212 we_need_a_new_tape = TRUE; 1212 log_to_screen( _("Should have started a new tape/CD already"));1213 log_to_screen("Should have started a new tape/CD already"); 1213 1214 } 1214 1215 if ((g_tape_posK + length_of_incoming_file / 1024) >> 10 >= … … 1367 1368 bkpinfo->internal_tape_block_size))) { 1368 1369 log_OS_error(g_tape_fifo); 1369 log_to_screen( _("Cannot openin stream device"));1370 log_to_screen("Cannot openin stream device"); 1370 1371 return (1); 1371 1372 } … … 1405 1406 if (g_current_media_number > MAX_NOOF_MEDIA) { 1406 1407 res++; 1407 log_to_screen( _("Too many tapes. Man, you need to use nfs!"));1408 log_to_screen("Too many tapes. Man, you need to use nfs!"); 1408 1409 } 1409 1410 if (bkpinfo->backup_media_type == cdstream) { … … 1417 1418 g_tape_stream = popen(command, "w"); 1418 1419 if (!g_tape_stream) { 1419 log_to_screen( _("Failed to openout to cdstream (fifo)"));1420 log_to_screen("Failed to openout to cdstream (fifo)"); 1420 1421 return (1); 1421 1422 } … … 1427 1428 bkpinfo->internal_tape_block_size))) { 1428 1429 log_OS_error(g_tape_fifo); 1429 log_to_screen( _("Cannot openin stream device"));1430 log_to_screen("Cannot openin stream device"); 1430 1431 return (1); 1431 1432 } … … 1512 1513 /*@ end vars *************************************************** */ 1513 1514 1514 open_evalcall_form( _("Writing data disks to tape"));1515 log_to_screen( _("Writing data disks to tape"));1515 open_evalcall_form("Writing data disks to tape"); 1516 log_to_screen("Writing data disks to tape"); 1516 1517 log_it("Data disks = %s", fname); 1517 1518 if (!does_file_exist(fname)) { 1518 sprintf(tmp, _("Cannot find %s"), fname);1519 sprintf(tmp, "Cannot find %s", fname); 1519 1520 log_to_screen(tmp); 1520 1521 return (1); … … 1705 1706 if (!g_tape_stream) { 1706 1707 log_to_screen 1707 ( _("You're not backing up to tape. Why write a tape header?"));1708 ("You're not backing up to tape. Why write a tape header?"); 1708 1709 return (1); 1709 1710 } … … 1750 1751 1751 1752 /*@ end vars *************************************************** */ 1752 sprintf(tmp, _("Wrong marker! (Should be %s, "),1753 sprintf(tmp, "Wrong marker! (Should be %s, ", 1753 1754 marker_to_string(should_be)); 1754 sprintf(tmp + strlen(tmp), _("is actually %s)"), marker_to_string(it_is));1755 sprintf(tmp + strlen(tmp), "is actually %s)", marker_to_string(it_is)); 1755 1756 log_to_screen(tmp); 1756 1757 }
Note:
See TracChangeset
for help on using the changeset viewer.