Changeset 2291 in MondoRescue for branches/2.2.10/mondo/src/mondorestore
- Timestamp:
- Jul 22, 2009, 2:11:26 PM (16 years ago)
- Location:
- branches/2.2.10/mondo/src/mondorestore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
r2282 r2291 615 615 // - faulty devices ignored 616 616 // - persistent superblock always used as this is recommended 617 mr_asprintf(&program, 618 "mdadm --create --force --run --auto=yes %s --level=%s --raid-devices=%d", 619 raidlist->el[i].raid_device, level, 620 raidlist->el[i].data_disks.entries); 617 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); 621 618 if (raidlist->el[i].parity != -1) { 622 619 mr_asprintf(&strtmp, "%s", program); … … 709 706 #endif 710 707 if (strlen(format) <= 2) { 711 mr_asprintf(&tmp, 712 "%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", 713 device, format); 708 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); 714 709 log_it(tmp); 715 710 paranoid_free(tmp); … … 774 769 775 770 while (1) { 776 mr_asprintf(&tmp, 777 "vinum lp -r %s | grep '^S' | head -1 | tr -s ' ' | cut -d: -f2 | cut -f1 | sed 's/^ //' | sed 's/I //' | sed 's/%%//'", 778 line); 771 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); 779 772 FILE *pin = popen(tmp, "r"); 780 773 paranoid_free(tmp); -
branches/2.2.10/mondo/src/mondorestore/mondo-rstr-compare.c
r2242 r2291 81 81 insist_on_this_cd_number((++g_current_media_number)); 82 82 } else { 83 mr_asprintf(&tmp_ptr, 84 "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."); 85 84 log_msg(2, tmp_ptr); 86 85 paranoid_free(tmp_ptr); … … 89 88 } 90 89 if (!(fin = fopen(slice_fname(bigfileno, 0, ARCHIVES_PATH, ""), "r"))) { 91 mr_asprintf(&tmp_ptr, 92 "Cannot open bigfile %ld (%s)'s info file", 93 bigfileno + 1, bigfile_fname_ptr); 90 mr_asprintf(&tmp_ptr, "Cannot open bigfile %ld (%s)'s info file", bigfileno + 1, bigfile_fname_ptr); 94 91 log_to_screen(tmp_ptr); 95 92 paranoid_free(tmp_ptr); … … 148 145 } 149 146 } 150 mr_asprintf(&tmp_ptr, "bigfile #%ld ('%s') ", bigfileno + 1, 151 bigfile_fname_ptr); 147 mr_asprintf(&tmp_ptr, "bigfile #%ld ('%s') ", bigfileno + 1, bigfile_fname_ptr); 152 148 if (!strcmp(checksum_ptr, original_cksum_ptr) != 0) { 153 149 mr_strcat(tmp_ptr, " ... OK"); -
branches/2.2.10/mondo/src/mondorestore/mondorestore.c
r2287 r2291 1725 1725 1726 1726 if (use_star) { 1727 mr_asprintf(&command, 1728 "star -x -force-remove -U " STAR_ACL_SZ 1729 " errctl= file=%s", tarball_fname); 1727 mr_asprintf(&command, "star -x -force-remove -U " STAR_ACL_SZ " errctl= file=%s", tarball_fname); 1730 1728 if (strstr(tarball_fname, ".bz2")) { 1731 1729 mr_strcat(command, " -bz"); … … 1736 1734 } else { 1737 1735 if (filelist_subset_fname != NULL) { 1738 mr_asprintf(&command, 1739 "afio -i -M 8m -b %ld -c %ld %s -w '%s' %s", 1740 TAPE_BLOCK_SIZE, 1741 BUFSIZE, executable, filelist_subset_fname, 1742 tarball_fname); 1736 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); 1743 1737 } else { 1744 mr_asprintf(&command, 1745 "afio -i -b %ld -c %ld -M 8m %s %s", 1746 TAPE_BLOCK_SIZE, 1747 BUFSIZE, executable, tarball_fname); 1738 mr_asprintf(&command, "afio -i -b %ld -c %ld -M 8m %s %s", TAPE_BLOCK_SIZE, BUFSIZE, executable, tarball_fname); 1748 1739 } 1749 1740 }
Note:
See TracChangeset
for help on using the changeset viewer.