Ignore:
Timestamp:
Jul 22, 2009, 2:03:44 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Fix a printing error in mindi for the tar command
  • Fix all mr_asprintf which had no second param as a string
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/mondorestore/mondo-prep.c

    r2230 r2290  
    612612  // - faulty devices ignored
    613613  // - persistent superblock always used as this is recommended
    614   mr_asprintf(&program,
    615        "mdadm --create --force --run --auto=yes %s --level=%s --raid-devices=%d",
    616        raidlist->el[i].raid_device, level,
    617        raidlist->el[i].data_disks.entries);
     614  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);
    618615  if (raidlist->el[i].parity != -1) {
    619616    mr_asprintf(&strtmp, "%s", program);
     
    710707#endif
    711708    if (strlen(format) <= 2) {
    712         mr_asprintf(&tmp,
    713                 "%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",
    714                 device, format);
     709        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);
    715710        log_it(tmp);
    716711        paranoid_free(tmp);
     
    777772
    778773                while (1) {
    779                     mr_asprintf(&tmp,
    780                             "vinum lp -r %s | grep '^S' | head -1 | tr -s ' ' | cut -d: -f2 | cut -f1 | sed 's/^ //' | sed 's/I //' | sed 's/%%//'",
    781                             line);
     774                    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);
    782775                    FILE *pin = popen(tmp, "r");
    783776                    paranoid_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.