Ignore:
Timestamp:
Sep 25, 2009, 6:44:01 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • 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
File:
1 edited

Legend:

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

    r2419 r2424  
    522522    char *cd_recovery_sz = NULL;
    523523    char *tape_size_sz = NULL;
    524     char *devs_to_exclude = NULL;
    525524    char *use_lilo_sz = NULL;   /* BCO: shared between LILO/ELILO */
    526525    char *value = NULL;
     
    541540
    542541    assert(bkpinfo != NULL);
    543     mr_asprintf(&tmp, "echo '%s' | tr -s ' ' '\n' | grep -E '^/dev/.*$' | tr -s '\n' ' ' | awk '{print $0\"\\n\";}'",
    544             bkpinfo->exclude_paths);
    545     mr_asprintf(&devs_to_exclude, "%s", call_program_and_get_last_line_of_output(tmp));
    546     mr_free(tmp);
    547 
    548     mr_asprintf(&tmp, "devs_to_exclude = '%s'", devs_to_exclude);
    549     log_msg(2, tmp);
    550     mr_free(tmp);
    551542
    552543    mvaddstr_and_log_it(g_currentY, 0,
     
    884875            last_filelist_number,   // parameter #12 (STRING)
    885876            estimated_total_noof_slices,    // parameter #13 (INT)
    886             devs_to_exclude,    // parameter #14
     877            bkpinfo->exclude_devs,  // parameter #14
    887878            use_comp_sz,        // parameter #15
    888879            use_lilo_sz,        // parameter #16
     
    892883            use_gzip_sz);       // parameter #20 (STRING)
    893884
    894     mr_free(devs_to_exclude);
    895885    mr_free(last_filelist_number);
    896886    mr_free(tape_device);
Note: See TracChangeset for help on using the changeset viewer.