Changeset 3318 in MondoRescue for branches/3.2/mondo/src/common


Ignore:
Timestamp:
Dec 1, 2014, 11:35:37 PM (9 years ago)
Author:
Bruno Cornec
Message:
  • Redirect the stderr of parted2fdisk into /dev/null to avoid error msgs on LVM, even if some are redirected in mondo log files and won't disappear
Location:
branches/3.2/mondo/src/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-devices.c

    r3309 r3318  
    26662666        mr_free(tmp);
    26672667// NTFS
    2668         strcpy(tmp1, call_program_and_get_last_line_of_output("parted2fdisk -l | grep -i ntfs | awk '{ print $1};' | tr -s '\\n' ' ' | awk '{ print $0};'"));
     2668        strcpy(tmp1, call_program_and_get_last_line_of_output("parted2fdisk -l 2>/dev/null | grep -i ntfs | awk '{ print $1};' | tr -s '\\n' ' ' | awk '{ print $0};'"));
    26692669        if (strlen(tmp1) > 2) {
    26702670            if (!popup_and_get_string("NTFS partitions", "Please enter/confirm the NTFS partitions you wish to backup as well.", tmp1, MAX_STR_LEN / 4)) {
     
    32743274    malloc_string(fdisk);
    32753275    sprintf(fdisk, "/sbin/parted2fdisk");
    3276     sprintf(command, "%s -l %s | grep 'EFI GPT'", fdisk, drive);
     3276    sprintf(command, "%s -l %s 2>/dev/null | grep 'EFI GPT'", fdisk, drive);
    32773277    mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(command));
    32783278    if (strstr(tmp, "GPT") == NULL) {
  • branches/3.2/mondo/src/common/libmondo-tools.c

    r3292 r3318  
    363363    assert(bkpinfo != NULL);
    364364
    365     bkpinfo->optimal_set_size = (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type) ? 16 : 16) * 1024;
     365    bkpinfo->optimal_set_size = (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type) ? 16 : 16) * 1024L;
    366366
    367367    log_msg(1, "Post-param");
     
    803803    }
    804804    strcpy(bkpinfo->prefix, STD_PREFIX);
    805     bkpinfo->optimal_set_size = 0;
     805    bkpinfo->optimal_set_size = 0L;
    806806    bkpinfo->backup_media_type = none;
    807807    bkpinfo->make_filelist = TRUE;  // unless -J supplied to mondoarchive
Note: See TracChangeset for help on using the changeset viewer.