Changeset 2548


Ignore:
Timestamp:
Jan 25, 2010, 2:24:23 PM (9 years ago)
Author:
bruno
Message:
  • 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
Location:
branches/2.2.9/mondo/src/common
Files:
2 edited

Legend:

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

    r2507 r2548  
    10241024    sprintf(archiving_filelist_fname, FILELIST_FNAME_RAW_SZ,
    10251025            bkpinfo->tmpdir, 0L);
    1026     for (archiving_set_no = 0; does_file_exist(archiving_filelist_fname);
     1026    for (archiving_set_no = 0L; does_file_exist(archiving_filelist_fname);
    10271027         sprintf(archiving_filelist_fname, FILELIST_FNAME_RAW_SZ,
    10281028                 bkpinfo->tmpdir, archiving_set_no)) {
  • branches/2.2.9/mondo/src/common/libmondo-filelist.c

    r2521 r2548  
    282282        }
    283283        if (siz > max_sane_size_for_a_file) {
     284            log_msg(10, "Adding %s to big files\n", incoming);
    284285            fprintf(fbig, "%s\n", incoming);
    285286        } else {
    286287            curr_set_size += siz;
     288            log_msg(10, "Adding %s to filelist %d\n", incoming, curr_set_no);
    287289            fprintf(fout, "%s\n", incoming);
    288290            if (curr_set_size > maxsetsizeK) {
     
    475477        mr_asprintf(&syscall, "%s 2>> /dev/null", strtmp);  // " MONDO_LOGFILE);
    476478        paranoid_free(strtmp);
     479        log_msg(20,"calling %s\n",syscall);
    477480        call_exe_and_pipe_output_to_fd(syscall, pout);
    478481        paranoid_free(syscall);
     
    516519        mr_free(command);
    517520        retval =
    518             gen_aux_list(filelist, "getfattr --en=hex -P -m - -d \"%s\"",
     521            gen_aux_list(filelist, "getfattr --en=hex -m - -d \"%s\"",
    519522                         fattr_fname);
    520523    }
     
    13661369#if linux
    13671370        // 2.6 has /sys as a proc-type thing -- must be excluded
    1368         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);
     1371        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);
    13691372#else
    13701373        // On BSD, for example, /sys is the kernel sources -- don't exclude
Note: See TracChangeset for help on using the changeset viewer.