Changeset 2211 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-stream.c
- Timestamp:
- Jun 3, 2009, 7:10:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-stream.c
r2176 r2211 13 13 14 14 #include "my-stuff.h" 15 #include "mr_mem.h" 15 16 #include "mondostructures.h" 16 17 #include "libmondo-devices.h" … … 369 370 } 370 371 if (strstr(fname, "xattr") == NULL) { 371 asprintf(&tmp,"Wrong order expected xattr, got %s, sunshine.", fname);372 mr_asprintf(&tmp,"Wrong order expected xattr, got %s, sunshine.", fname); 372 373 fatal_error(tmp); 373 374 } … … 399 400 } 400 401 if (strstr(fname, "acl") == NULL) { 401 asprintf(&tmp,"Wrong order expected acl, got %s, sunshine.", fname);402 mr_asprintf(&tmp,"Wrong order expected acl, got %s, sunshine.", fname); 402 403 fatal_error(tmp); 403 404 } … … 682 683 683 684 log_it("Skipping OBDR headers"); 684 asprintf(&command, "mt -f %s rewind",bkpinfo->media_device);685 mr_asprintf(&command, "mt -f %s rewind",bkpinfo->media_device); 685 686 res = run_program_and_log_output(command, 1); 686 687 paranoid_free(command); 687 688 688 asprintf(&command, "mt -f %s fsf 2",bkpinfo->media_device);689 mr_asprintf(&command, "mt -f %s fsf 2",bkpinfo->media_device); 689 690 res = run_program_and_log_output(command, 1); 690 691 paranoid_free(command); … … 709 710 log_it("Creating OBDR headers"); 710 711 /* OBDR: First block 10 kB of zero bs = 512 */ 711 asprintf(&command, "mt -f %s compression off",bkpinfo->media_device);712 mr_asprintf(&command, "mt -f %s compression off",bkpinfo->media_device); 712 713 res = run_program_and_log_output(command, 1); 713 714 paranoid_free(command); 714 715 715 asprintf(&command, "mt -f %s rewind",bkpinfo->media_device);716 mr_asprintf(&command, "mt -f %s rewind",bkpinfo->media_device); 716 717 res += run_program_and_log_output(command, 1); 717 718 paranoid_free(command); … … 719 720 set_tape_block_size_with_mt(512); 720 721 721 asprintf(&command, "dd if=/dev/zero of=%s bs=512 count=20",bkpinfo->media_device);722 mr_asprintf(&command, "dd if=/dev/zero of=%s bs=512 count=20",bkpinfo->media_device); 722 723 res += run_program_and_log_output(command, 1); 723 724 paranoid_free(command); … … 726 727 set_tape_block_size_with_mt(2048); 727 728 728 asprintf(&command, "dd if=%s of=%s bs=2048",MINDI_CACHE"/mondorescue.iso",bkpinfo->media_device);729 mr_asprintf(&command, "dd if=%s of=%s bs=2048",MINDI_CACHE"/mondorescue.iso",bkpinfo->media_device); 729 730 res += run_program_and_log_output(command, 1); 730 731 paranoid_free(command);
Note:
See TracChangeset
for help on using the changeset viewer.