Changeset 3185 in MondoRescue for branches/3.0/mondo/src/mondorestore
- Timestamp:
- Sep 20, 2013, 2:29:57 PM (12 years ago)
- Location:
- branches/3.0/mondo/src/mondorestore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/mondorestore/mondo-prep.c
r3071 r3185 335 335 log_it("%s... so I'll get creative.", tmp); 336 336 if (lvmversion == 2) { 337 mr_asprintf( &tmp1, "tail -n5 %s | grep Insufficient | tail -n1", MONDO_LOGFILE);337 mr_asprintf(tmp1, "tail -n5 %s | grep Insufficient | tail -n1", MONDO_LOGFILE); 338 338 strcpy(tmp, call_program_and_get_last_line_of_output(tmp1)); 339 339 free(tmp1); 340 340 } else { 341 mr_asprintf( &tmp1, "tail -n5 %s | grep lvcreate | tail -n1", MONDO_LOGFILE);341 mr_asprintf(tmp1, "tail -n5 %s | grep lvcreate | tail -n1", MONDO_LOGFILE); 342 342 strcpy(tmp, call_program_and_get_last_line_of_output(tmp1)); 343 343 free(tmp1); … … 586 586 // create device list from normal disks followed by spare ones 587 587 if (raidlist->el[i].data_disks.el[0].device != NULL) { 588 mr_asprintf( &devices, "%s", raidlist->el[i].data_disks.el[0].device);588 mr_asprintf(devices, "%s", raidlist->el[i].data_disks.el[0].device); 589 589 log_msg(4, "Adding device %s to list", raidlist->el[i].data_disks.el[0].device); 590 590 } else { … … 602 602 // translate RAID level 603 603 if (raidlist->el[i].raid_level == -2) { 604 mr_asprintf( &level, "multipath");604 mr_asprintf(level, "multipath"); 605 605 } else if (raidlist->el[i].raid_level == -1) { 606 mr_asprintf( &level, "linear");606 mr_asprintf(level, "linear"); 607 607 } else { 608 mr_asprintf( &level, "raid%d", raidlist->el[i].raid_level);608 mr_asprintf(level, "raid%d", raidlist->el[i].raid_level); 609 609 } 610 610 // create RAID device: … … 614 614 // - persistent superblock always used as this is recommended 615 615 616 mr_asprintf( &program, "mdadm --create --force --run --auto=yes %s --level=%s --raid-devices=%d", raidlist->el[i].raid_device, level, raidlist->el[i].data_disks.entries);616 mr_asprintf(program, "mdadm --create --force --run --auto=yes %s --level=%s --raid-devices=%d", raidlist->el[i].raid_device, level, raidlist->el[i].data_disks.entries); 617 617 mr_free(level); 618 618 log_msg(4, "cmd built: %s", program); … … 718 718 719 719 if (strstr(format, "raid")) { // do not form RAID disks; do it to /dev/md* instead 720 mr_asprintf( &tmp, "Not formatting %s (it is a RAID disk)", device);720 mr_asprintf(tmp, "Not formatting %s (it is a RAID disk)", device); 721 721 log_it(tmp); 722 722 paranoid_free(tmp); … … 733 733 #endif 734 734 if (strlen(format) <= 2) { 735 mr_asprintf( &tmp, "%s has a really small format type ('%s') - this is probably a hexadecimal string, which would suggest the partition is an image --- I shouldn't format it", device, format);735 mr_asprintf(tmp, "%s has a really small format type ('%s') - this is probably a hexadecimal string, which would suggest the partition is an image --- I shouldn't format it", device, format); 736 736 log_it(tmp); 737 737 paranoid_free(tmp); … … 740 740 } 741 741 if (is_this_device_mounted(device)) { 742 mr_asprintf( &tmp, "%s is mounted - cannot format it ", device);742 mr_asprintf(tmp, "%s is mounted - cannot format it ", device); 743 743 log_to_screen(tmp); 744 744 paranoid_free(tmp); … … 771 771 char line[MAX_STR_LEN]; 772 772 773 mr_asprintf( &tmp, "Initializing Vinum device %s (this may take a *long* time)", device);773 mr_asprintf(tmp, "Initializing Vinum device %s (this may take a *long* time)", device); 774 774 log_to_screen(tmp); 775 775 paranoid_free(tmp); … … 789 789 *(strchr(line, '\n')) = '\0'; // get rid of the \n on the end 790 790 791 mr_asprintf( &tmp, "Initializing plex: %s", line);791 mr_asprintf(tmp, "Initializing plex: %s", line); 792 792 open_evalcall_form(tmp); 793 793 paranoid_free(tmp); 794 794 795 mr_asprintf( &tmp, "vinum init %s", line);795 mr_asprintf(tmp, "vinum init %s", line); 796 796 paranoid_system(tmp); 797 797 paranoid_free(tmp); 798 798 799 799 while (1) { 800 mr_asprintf( &tmp, "vinum lp -r %s | grep '^S' | head -1 | tr -s ' ' | cut -d: -f2 | cut -f1 | sed 's/^ //' | sed 's/I //' | sed 's/%%//'", line);800 mr_asprintf(tmp, "vinum lp -r %s | grep '^S' | head -1 | tr -s ' ' | cut -d: -f2 | cut -f1 | sed 's/^ //' | sed 's/I //' | sed 's/%%//'", line); 801 801 FILE *pin = popen(tmp, "r"); 802 802 paranoid_free(tmp); … … 820 820 } 821 821 #else 822 mr_asprintf( &tmp, "Initializing RAID device %s", device);822 mr_asprintf(tmp, "Initializing RAID device %s", device); 823 823 log_to_screen(tmp); 824 824 paranoid_free(tmp); … … 871 871 } 872 872 res = which_format_command_do_i_need(format, program); 873 mr_asprintf( &tmp, "%s %s", program, device);873 mr_asprintf(tmp, "%s %s", program, device); 874 874 if (strstr(program, "kludge")) { 875 875 mr_strcat(tmp, " /"); … … 878 878 paranoid_free(tmp); 879 879 880 mr_asprintf( &tmp, "Formatting %s as %s", device, format);880 mr_asprintf(tmp, "Formatting %s as %s", device, format); 881 881 update_progress_form(tmp); 882 882 paranoid_free(tmp); … … 892 892 893 893 if (res && strstr(program, "kludge")) { 894 mr_asprintf( &tmp, "Kludge failed; using regular mkfs.%s to format %s",894 mr_asprintf(tmp, "Kludge failed; using regular mkfs.%s to format %s", 895 895 format, device); 896 896 #ifdef __FreeBSD__ … … 1705 1705 paranoid_system(tmp); 1706 1706 // mark relevant partition as bootable 1707 mr_asprintf( &tmp1,"make-me-bootable /tmp/mountlist.txt %s",drivename);1707 mr_asprintf(tmp1,"make-me-bootable /tmp/mountlist.txt %s",drivename); 1708 1708 call_program_and_get_last_line_of_output(tmp1); 1709 1709 mr_free(tmp1); … … 1817 1817 /* BERLIOS: should not be called each time */ 1818 1818 part_table_fmt = which_partition_format(drive); 1819 mr_asprintf( &output, "");1819 mr_asprintf(output, ""); 1820 1820 /* make it a primary/extended/logical */ 1821 1821 if (partno <= 4) { … … 2169 2169 fput_string_one_char_at_a_time(pout_to_fdisk, "p\n"); 2170 2170 } else { 2171 mr_asprintf( &output, "t\n%d\n%s\nw\n", partno, partcode);2171 mr_asprintf(output, "t\n%d\n%s\nw\n", partno, partcode); 2172 2172 sprintf(command, "parted2fdisk %s >> %s 2>> %s", drive, 2173 2173 MONDO_LOGFILE, MONDO_LOGFILE); … … 2519 2519 return; 2520 2520 } 2521 mr_asprintf( &tmp, "Expanding entries to suit drive %s (%lld MB)", drive_name, current_size_of_drive / 1024);2521 mr_asprintf(tmp, "Expanding entries to suit drive %s (%lld MB)", drive_name, current_size_of_drive / 1024); 2522 2522 log_to_screen(tmp); 2523 2523 mr_free(tmp); … … 2539 2539 2540 2540 if (original_size_of_drive <= 0LL) { 2541 mr_asprintf( &tmp, "Cannot resize %s's entries. Drive not found.", drive_name);2541 mr_asprintf(tmp, "Cannot resize %s's entries. Drive not found.", drive_name); 2542 2542 log_to_screen(tmp); 2543 2543 mr_free(tmp); … … 2545 2545 } 2546 2546 factor = ((float)current_size_of_drive/(float)original_size_of_drive); 2547 mr_asprintf( &tmp, "Disk %s was %lld MB; is now %lld MB; Proportionally resizing partitions (factor ~= %.5f)",2547 mr_asprintf(tmp, "Disk %s was %lld MB; is now %lld MB; Proportionally resizing partitions (factor ~= %.5f)", 2548 2548 drive_name, original_size_of_drive/1024, current_size_of_drive/1024, factor); 2549 2549 log_to_screen(tmp); … … 2572 2572 totalsizL += newsizL; 2573 2573 2574 mr_asprintf( &tmp, "Changing %s from %lld KB to %lld KB", drivemntlist->el[partno]->device, drivemntlist->el[partno]->size, newsizL);2574 mr_asprintf(tmp, "Changing %s from %lld KB to %lld KB", drivemntlist->el[partno]->device, drivemntlist->el[partno]->size, newsizL); 2575 2575 log_to_screen(tmp); 2576 2576 mr_free(tmp); … … 2579 2579 // Ensures over-allocation alert and prompt for interactive mode does not happen 2580 2580 if (totalsizL > current_size_of_drive) { 2581 mr_asprintf( &tmp, "Last partition size calculated would be over-allocated, reducing %s from %lld KB to %lld KB.", drivemntlist->el[lastpart]->device, drivemntlist->el[lastpart]->size, drivemntlist->el[lastpart]->size - (totalsizL - current_size_of_drive));2581 mr_asprintf(tmp, "Last partition size calculated would be over-allocated, reducing %s from %lld KB to %lld KB.", drivemntlist->el[lastpart]->device, drivemntlist->el[lastpart]->size, drivemntlist->el[lastpart]->size - (totalsizL - current_size_of_drive)); 2582 2582 drivemntlist->el[drivemntlist->entries-1]->size -= (totalsizL - current_size_of_drive); 2583 2583 } else if (totalsizL < current_size_of_drive) { 2584 mr_asprintf( &tmp, "Last partition size calculated would be under-allocated, increasing %s from %lld KB to %lld KB.",drivemntlist->el[lastpart]->device, drivemntlist->el[lastpart]->size, drivemntlist->el[lastpart]->size + (current_size_of_drive - totalsizL));2584 mr_asprintf(tmp, "Last partition size calculated would be under-allocated, increasing %s from %lld KB to %lld KB.",drivemntlist->el[lastpart]->device, drivemntlist->el[lastpart]->size, drivemntlist->el[lastpart]->size + (current_size_of_drive - totalsizL)); 2585 2585 drivemntlist->el[drivemntlist->entries-1]->size += (current_size_of_drive - totalsizL); 2586 2586 } 2587 2587 log_to_screen(tmp); 2588 2588 mr_free(tmp); 2589 mr_asprintf( &tmp, "final_size = %lld MB", current_size_of_drive / 1024);2589 mr_asprintf(tmp, "final_size = %lld MB", current_size_of_drive / 1024); 2590 2590 log_to_screen(tmp); 2591 2591 mr_free(tmp); -
branches/3.0/mondo/src/mondorestore/mondo-rstr-compare.c
r3060 r3185 81 81 insist_on_this_cd_number((++g_current_media_number)); 82 82 } else { 83 mr_asprintf( &tmp_ptr, "No CD's left. No biggiefiles left. No prob, Bob.");83 mr_asprintf(tmp_ptr, "No CD's left. No biggiefiles left. No prob, Bob."); 84 84 log_msg(2, tmp_ptr); 85 85 paranoid_free(tmp_ptr); … … 88 88 } 89 89 if (!(fin = fopen(slice_fname(bigfileno, 0, ARCHIVES_PATH, ""), "r"))) { 90 mr_asprintf( &tmp_ptr, "Cannot open bigfile %ld (%s)'s info file", bigfileno + 1, bigfile_fname_ptr);90 mr_asprintf(tmp_ptr, "Cannot open bigfile %ld (%s)'s info file", bigfileno + 1, bigfile_fname_ptr); 91 91 log_to_screen(tmp_ptr); 92 92 paranoid_free(tmp_ptr); … … 105 105 106 106 if (!g_text_mode) { 107 mr_asprintf( &tmp_ptr, "Comparing %s", bigfile_fname_ptr);107 mr_asprintf(tmp_ptr, "Comparing %s", bigfile_fname_ptr); 108 108 newtDrawRootText(0, 22, tmp_ptr); 109 109 paranoid_free(tmp_ptr); … … 121 121 } 122 122 log_msg(2, command_ptr); 123 mr_asprintf( &tmp_ptr, "cat /tmp/errors >> %s 2> /dev/null", MONDO_LOGFILE);123 mr_asprintf(tmp_ptr, "cat /tmp/errors >> %s 2> /dev/null", MONDO_LOGFILE); 124 124 paranoid_system(tmp_ptr); 125 125 paranoid_free(tmp_ptr); … … 149 149 } 150 150 } 151 mr_asprintf( &tmp_ptr, "bigfile #%ld ('%s') ", bigfileno + 1, bigfile_fname_ptr);151 mr_asprintf(tmp_ptr, "bigfile #%ld ('%s') ", bigfileno + 1, bigfile_fname_ptr); 152 152 if (!strcmp(checksum_ptr, original_cksum_ptr) != 0) { 153 153 mr_strcat(tmp_ptr, " ... OK"); … … 280 280 281 281 if (use_star) { 282 mr_asprintf( &archiver_exe, "star");283 } else { 284 mr_asprintf( &archiver_exe, "afio");282 mr_asprintf(archiver_exe, "star"); 283 } else { 284 mr_asprintf(archiver_exe, "afio"); 285 285 } 286 286 -
branches/3.0/mondo/src/mondorestore/mondo-rstr-newt.c
r3158 r3185 1974 1974 /* flaws_str can be NULL */ 1975 1975 if ((flaws_str == NULL) || (strlen(flaws_str) == 0)) { 1976 mr_asprintf( &flaws_str_A, "");1976 mr_asprintf(flaws_str_A, ""); 1977 1977 } else { 1978 mr_asprintf( &flaws_str_A, "%s", flaws_str + 1);1978 mr_asprintf(flaws_str_A, "%s", flaws_str + 1); 1979 1979 } 1980 1980 if (strlen(flaws_str_A) >= 74) { 1981 1981 for (i = 74; flaws_str_A[i] != ' '; i--); 1982 mr_asprintf( &flaws_str_B, "%s", flaws_str_A + i + 1);1982 mr_asprintf(flaws_str_B, "%s", flaws_str_A + i + 1); 1983 1983 flaws_str_A[i] = '\0'; 1984 1984 } else { 1985 mr_asprintf( &flaws_str_B, "");1985 mr_asprintf(flaws_str_B, ""); 1986 1986 } 1987 1987 if (strlen(flaws_str_B) >= 74) { 1988 1988 for (i = 74; flaws_str_B[i] != ' '; i--); 1989 mr_asprintf( &flaws_str_C, "%s", flaws_str_B + i + 1);1989 mr_asprintf(flaws_str_C, "%s", flaws_str_B + i + 1); 1990 1990 flaws_str_B[i] = '\0'; 1991 1991 } else { 1992 mr_asprintf( &flaws_str_C, "");1992 mr_asprintf(flaws_str_C, ""); 1993 1993 } 1994 1994 -
branches/3.0/mondo/src/mondorestore/mondo-rstr-tools.c
r3158 r3185 330 330 if (HDD) { 331 331 /* We need an additional param */ 332 mr_asprintf( &(bkpinfo->subdir), "%s", bkpinfo->isodir);332 mr_asprintf(bkpinfo->subdir, "%s", bkpinfo->isodir); 333 333 strcpy(bkpinfo->isodir, "/tmp/isodir"); 334 334 log_it("Now bkpinfo->isodir = %s and subdir = ", bkpinfo->isodir, bkpinfo->subdir); … … 383 383 log_to_screen("WARNING - isodir is already mounted"); 384 384 } else { 385 mr_asprintf( &mount_isodir_command, "mount %s", g_isodir_device);385 mr_asprintf(mount_isodir_command, "mount %s", g_isodir_device); 386 386 if (strlen(g_isodir_format) > 1) { 387 387 mr_strcat(mount_isodir_command, " -t %s", g_isodir_format); … … 478 478 log_msg(1, tmp); 479 479 /* Deal with additional params only if not /proc or /sys */ 480 mr_asprintf( &additional_parameters, "");480 mr_asprintf(additional_parameters, ""); 481 481 if (strcmp(format, "proc") && strcmp(format, "sys")) { 482 482 if (writeable) { … … 586 586 "", mountlist->entries); 587 587 588 mr_asprintf( &these_failed, "");588 mr_asprintf(these_failed, ""); 589 589 for (lino = 0; lino < mountlist->entries; lino++) { 590 590 if (!strcmp(mountlist->el[lino].device, "/proc")) { … … 766 766 bkpinfo->please_dont_eject = TRUE; 767 767 if (read_cfg_var(cfg_file, "netfs-proto", value) == 0) { 768 mr_asprintf( &(bkpinfo->netfs_proto),"%s", value);768 mr_asprintf(bkpinfo->netfs_proto,"%s", value); 769 769 } else { 770 770 /* For compatibility, force protocol in old nfs case to be transparent */ 771 mr_asprintf( &(bkpinfo->netfs_proto), "nfs");771 mr_asprintf(bkpinfo->netfs_proto, "nfs"); 772 772 } 773 773 if (read_cfg_var(cfg_file, "netfs-server-user", value) == 0) { 774 mr_asprintf( &(bkpinfo->netfs_user),"%s", value);774 mr_asprintf(bkpinfo->netfs_user,"%s", value); 775 775 } 776 776 if (read_cfg_var(cfg_file, "iso-prefix", value) == 0) { … … 851 851 read_cfg_var(cfg_file, "acl", value); 852 852 if (strstr(value, "TRUE")) { 853 mr_asprintf( &g_getfacl,"setfacl");853 mr_asprintf(g_getfacl,"setfacl"); 854 854 log_msg(1, "We will restore ACLs"); 855 855 if (! find_home_of_exe("setfacl")) { … … 859 859 read_cfg_var(cfg_file, "xattr", value); 860 860 if (strstr(value, "TRUE")) { 861 mr_asprintf( &g_getfattr,"setfattr");861 mr_asprintf(g_getfattr,"setfattr"); 862 862 log_msg(1, "We will restore XATTRs"); 863 863 if (! find_home_of_exe("setfattr")) { … … 1370 1370 * the current /dev location 1371 1371 */ 1372 mr_asprintf( &cmd,"tar cf - /dev | ( cd %s ; tar xf - )",MNT_RESTORING);1372 mr_asprintf(cmd,"tar cf - /dev | ( cd %s ; tar xf - )",MNT_RESTORING); 1373 1373 run_program_and_log_output(cmd, 3); 1374 1374 paranoid_free(cmd); … … 1385 1385 read_cfg_var(g_mondo_cfg_file, "bootloader.device", device); 1386 1386 read_cfg_var(g_mondo_cfg_file, "bootloader.name", name); 1387 mr_asprintf( &tmp, "run_boot_loader: device='%s', name='%s'", device, name);1387 mr_asprintf(tmp, "run_boot_loader: device='%s', name='%s'", device, name); 1388 1388 log_msg(2, tmp); 1389 1389 paranoid_free(tmp); … … 1402 1402 #ifdef __FreeBSD__ 1403 1403 else if (!strcmp(name, "BOOT0")) { 1404 mr_asprintf( &tmp, "boot0cfg -B %s", device);1404 mr_asprintf(tmp, "boot0cfg -B %s", device); 1405 1405 res = run_program_and_log_output(tmp, FALSE); 1406 1406 paranoid_free(tmp); 1407 1407 } else { 1408 mr_asprintf( &tmp, "ls /dev | grep -Eq '^%ss[1-4].*'", device);1408 mr_asprintf(tmp, "ls /dev | grep -Eq '^%ss[1-4].*'", device); 1409 1409 if (!system(tmp)) { 1410 1410 paranoid_free(tmp); 1411 mr_asprintf( &tmp, MNT_RESTORING "/sbin/fdisk -B %s", device);1411 mr_asprintf(tmp, MNT_RESTORING "/sbin/fdisk -B %s", device); 1412 1412 res = run_program_and_log_output(tmp, 3); 1413 1413 } else { … … 2056 2056 paranoid_system("sync"); 2057 2057 2058 mr_asprintf( &tmp, "cp -f %s " MNT_RESTORING "/var/log", MONDO_LOGFILE);2058 mr_asprintf(tmp, "cp -f %s " MNT_RESTORING "/var/log", MONDO_LOGFILE); 2059 2059 if (run_program_and_log_output(tmp, FALSE)) { 2060 2060 log_msg(1, … … 2075 2075 continue; 2076 2076 } 2077 mr_asprintf( &tmp, "Unmounting device %s ", mountlist->el[lino].device);2077 mr_asprintf(tmp, "Unmounting device %s ", mountlist->el[lino].device); 2078 2078 2079 2079 update_progress_form(tmp); -
branches/3.0/mondo/src/mondorestore/mondorestore.c
r3158 r3185 354 354 355 355 /* Clean up blkid cache file if they exist */ 356 mr_asprintf( &tmp1,"%s/etc/blkid.tab",bkpinfo->restore_path);356 mr_asprintf(tmp1,"%s/etc/blkid.tab",bkpinfo->restore_path); 357 357 (void)unlink(tmp1); 358 358 paranoid_free(tmp1); 359 mr_asprintf( &tmp1,"%s/etc/blkid.tab.old",bkpinfo->restore_path);359 mr_asprintf(tmp1,"%s/etc/blkid.tab.old",bkpinfo->restore_path); 360 360 (void)unlink(tmp1); 361 361 paranoid_free(tmp1); … … 369 369 370 370 /* Clean up multiconf cache file if they exist */ 371 mr_asprintf( &tmp1,"%s/var/lib/multipath/bindings",bkpinfo->restore_path);371 mr_asprintf(tmp1,"%s/var/lib/multipath/bindings",bkpinfo->restore_path); 372 372 (void)unlink(tmp1); 373 373 paranoid_free(tmp1); 374 374 375 375 /* Edit multipath.conf if needed to adapt wwid */ 376 mr_asprintf( &tmp1,"%s/etc/multipath.conf", MNT_RESTORING);376 mr_asprintf(tmp1,"%s/etc/multipath.conf", MNT_RESTORING); 377 377 if (does_file_exist(tmp1)) { 378 378 log_msg(2, "We may need to clean /etc/multipath.conf"); … … 384 384 385 385 if (bkpinfo->restore_mode != nuke) { 386 mr_asprintf( &editor, "%s", find_my_editor());387 mr_asprintf( &tmp1,"chroot %s %s /etc/multipath.conf", MNT_RESTORING, editor);386 mr_asprintf(editor, "%s", find_my_editor()); 387 mr_asprintf(tmp1,"chroot %s %s /etc/multipath.conf", MNT_RESTORING, editor); 388 388 popup_and_OK("You will now edit multipath.conf"); 389 389 if (!g_text_mode) { … … 1670 1670 use_star = (strstr(tarball_fname, ".star")) ? TRUE : FALSE; 1671 1671 // sprintf(files_to_restore_this_time_fname, "/tmp/ftrttf.%d.%d", (int)getpid(), (int)random()); 1672 mr_asprintf( &command, "mkdir -p %s/tmp", MNT_RESTORING);1672 mr_asprintf(command, "mkdir -p %s/tmp", MNT_RESTORING); 1673 1673 run_program_and_log_output(command, 9); 1674 1674 paranoid_free(command); … … 1757 1757 // if (strstr(tarball_fname, ".star.")) 1758 1758 if (use_star) { 1759 mr_asprintf( &command, "star -x -force-remove -sparse -U " STAR_ACL_SZ " file=%s", tarball_fname);1759 mr_asprintf(command, "star -x -force-remove -sparse -U " STAR_ACL_SZ " file=%s", tarball_fname); 1760 1760 if (strstr(tarball_fname, ".bz2")) { 1761 1761 mr_strcat(command, " -bz"); … … 1763 1763 } else { 1764 1764 if (filelist_subset_fname[0] != '\0') { 1765 mr_asprintf( &command, "afio -i -M 8m -b %ld -c %ld %s -w '%s' %s", TAPE_BLOCK_SIZE, BUFSIZE, executable, filelist_subset_fname, tarball_fname);1765 mr_asprintf(command, "afio -i -M 8m -b %ld -c %ld %s -w '%s' %s", TAPE_BLOCK_SIZE, BUFSIZE, executable, filelist_subset_fname, tarball_fname); 1766 1766 } else { 1767 mr_asprintf( &command, "afio -i -b %ld -c %ld -M 8m %s %s", TAPE_BLOCK_SIZE, BUFSIZE, executable, tarball_fname);1767 mr_asprintf(command, "afio -i -b %ld -c %ld -M 8m %s %s", TAPE_BLOCK_SIZE, BUFSIZE, executable, tarball_fname); 1768 1768 } 1769 1769 } … … 1818 1818 // Be verbose for star 1819 1819 if (retval || use_star) { 1820 mr_asprintf( &command, "cat %s >> %s", temp_log, MONDO_LOGFILE);1820 mr_asprintf(command, "cat %s >> %s", temp_log, MONDO_LOGFILE); 1821 1821 paranoid_system(command); 1822 1822 paranoid_free(command); … … 2310 2310 filelist); 2311 2311 } 2312 mr_asprintf( &tmp1, "%s #%d, fileset #%ld - restore ",2312 mr_asprintf(tmp1, "%s #%d, fileset #%ld - restore ", 2313 2313 mds, g_current_media_number, current_tarball_number); 2314 2314 if (res) {
Note:
See TracChangeset
for help on using the changeset viewer.