Ignore:
Timestamp:
Sep 28, 2009, 2:29:12 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Attempt to stay backward compatible without protocol for -n option
  • Improving ssh support at restore time by providing a shadow file
  • analyze-my-lvm now removes excluded devices from list coming from mondoarchive
  • new mr_make_devlist_from_pathlist which handle the new bkpinfo->exclude_devs field containing the excluded devices and remove corresponding code from libmondo-cli.c
  • Move DSF code into libmondo-devices.c for coherency, and only the previous function is made externally available
  • Remove dev_to_exclude in libmondo-archive.c which wasn't working correctly and replace it with bkpinfo->exclude_devs
  • Fix an issue in is_this_device_mounted (string freed before last usage)
  • Adds support for bnx2x (BL 460 G6) and auth_rpcgss (Debian 2.6.31)

(Backport from 2.2.9)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-archive.c

    r2421 r2428  
    517517    char *cd_recovery_sz = NULL;
    518518    char *tape_size_sz = NULL;
    519     char *devs_to_exclude = NULL;
    520519    char *use_lilo_sz = NULL;   /* BCO: shared between LILO/ELILO */
    521520    char *value = NULL;
     
    536535
    537536    assert(bkpinfo != NULL);
    538     if (bkpinfo->exclude_paths) {
    539         mr_asprintf(tmp, "echo '%s' | tr -s ' ' '\n' | grep -E '^/dev/.*$' | tr -s '\n' ' ' | awk '{print $0\"\\n\";}'", bkpinfo->exclude_paths);
    540         devs_to_exclude = call_program_and_get_last_line_of_output(tmp);
    541         mr_free(tmp);
    542 
    543         log_msg(2, "devs_to_exclude = '%s'", devs_to_exclude);
    544     }
    545537
    546538    mr_asprintf(tmp, "%s/filelist.full", bkpinfo->tmpdir);
     
    815807            last_filelist_number,   // parameter #12 (STRING)
    816808            estimated_total_noof_slices,    // parameter #13 (INT)
    817             (devs_to_exclude == NULL) ? "\"\"" : devs_to_exclude,   // parameter #14
     809            (bkpinfo->exclude_devs == NULL) ? "\"\"" : bkpinfo->exclude_devs,   // parameter #14
    818810            use_comp_sz,        // parameter #15
    819811            use_lilo_sz,        // parameter #16
     
    826818
    827819    mr_free(tmp2);
    828     mr_free(devs_to_exclude);
    829820    mr_free(last_filelist_number);
    830821    mr_free(tape_device);
Note: See TracChangeset for help on using the changeset viewer.