Ignore:
Timestamp:
Feb 2, 2010, 10:40:28 AM (14 years ago)
Author:
Bruno Cornec
Message:

svn merge -r 2545:2567 /mondorescue/branches/2.2.9

  • Improve device exclusion for LVM by adding support for symlinks and mapper systematically at all levels (PV, VG, LV). Shoul

d really provvide the best support possible for LVM exclusion.

  • Now supports also exclusion of LVs directly
  • Improve mindi by handling excluded devices earlier in the loop.
  • Fix LV exclusion when VGs are excluded (the excludedvgs file has to be removed at start and end of analyze-my-lvm not in fu

nctions, as they are called multiple times)

  • Rename some variables exported to avoid accidental conflict (EXCLUDE_DEVS => MINDI_EXCLUDE_DEVS and ADDITIONAL_BOOT_PARAMS

=> MINDI_ADDITIONAL_BOOT_PARAMS)

  • setfattr also needs the -h flag to restore attributes on symlinks, not on the target file (which may not exist BTW). Should solve #388.
  • Using forcemods="mod1 mod2" will now do something and load those modules first
  • Update web page on distributions to download
  • Add support for ums_cypress module in mindi
  • Fix acl backup which was completely wrong.
  • Fix a bug where LV were not created anymore if no exclusion !!
  • In analyze-my-lvm only use pv.tmp2 when it exists to avoid error msgs

-Adds support for links to modules (.ko pointing to .o) such as with VMWare extensions

  • Adds i-want-my-lvm content in mindi log file
  • Adds vmxnet3 driver support to mindi for some VMWare versions
  • Fix a typo in the way device mapper files where excluded
  • use option -h of getfattr to *not* follow symlinks, which breaks RHEL 5.4 as reported in #388. However, getfacl doesn't provide such an option.
  • Adds some logs for filelist creation
  • Remove option -P from getfattr which may also skip symlinks - Attempt to solve #388
  • Exclude rpc_pipefs type of filesystems from find
  • Suppress unused mode_of_file function
File:
1 edited

Legend:

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

    r2523 r2569  
    279279        }
    280280        if (siz > max_sane_size_for_a_file) {
     281            log_msg(10, "Adding %s to big files\n", incoming);
    281282            fprintf(fbig, "%s\n", incoming);
    282283        } else {
    283284            curr_set_size += siz;
     285            log_msg(10, "Adding %s to filelist %d\n", incoming, curr_set_no);
    284286            fprintf(fout, "%s\n", incoming);
    285287            if (curr_set_size > maxsetsizeK) {
     
    464466        mr_free(strtmp);
    465467
     468        log_msg(20,"calling %s\n",syscall);
    466469        call_exe_and_pipe_output_to_fd(syscall, pout);
    467470        mr_free(syscall);
     
    485488        mr_free(command);
    486489
    487         mr_asprintf(command, "getfacl --all-effective -P %s 2>> %s | gzip -c1 > %s 2>> %s", filelist, MONDO_LOGFILE, facl_fname, MONDO_LOGFILE);
    488         log_it("%s",command);
    489         retval = system(command);
    490         mr_free(command);
     490        retval =
     491            gen_aux_list(filelist, "getfacl --all-effective -P %s", facl_fname);
    491492    }
    492493    return (retval);
     
    504505        mr_free(command);
    505506        retval =
    506             gen_aux_list(filelist, "getfattr --en=hex -P -m - -d \"%s\"",
    507                          fattr_fname);
     507            gen_aux_list(filelist, "getfattr --en=hex -m - -h -d \"%s\"", fattr_fname);
    508508    }
    509509    return (retval);
     
    531531        || !does_file_exist(orig_msklist)) {
    532532        log_msg(1, "No masklist provided. I shall therefore set ALL attributes.");
    533         mr_asprintf(command, "gzip -dc %s | %s --restore - 2>> %s", original_exat_fname, executable, MONDO_LOGFILE);
     533        mr_asprintf(command, "gzip -dc %s | %s -h --restore - 2>> %s", original_exat_fname, executable, MONDO_LOGFILE);
    534534        log_msg(1, "command = %s", command);
    535535        retval = system(command);
     
    13561356#if linux
    13571357        // 2.6 has /sys as a proc-type thing -- must be excluded
    1358         mr_asprintf(strtmp, "find '%s' -fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype proc -prune -o -fstype sysfs -prune -o %s -type d -print > %s 2> /dev/null", dir, find_excludes, g_skeleton_filelist);
     1358        mr_asprintf(strtmp, "find '%s' -fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype proc -prune -o -fstype sysfs -prune -o -fstype rpc_pipefs -prune -o %s -type d -print > %s 2> /dev/null", dir, find_excludes, g_skeleton_filelist);
    13591359#else
    13601360        // On BSD, for example, /sys is the kernel sources -- don't exclude
Note: See TracChangeset for help on using the changeset viewer.