Ignore:
Timestamp:
Jun 13, 2010, 12:50:02 PM (10 years ago)
Author:
Bruno Cornec
Message:

svn merge -r 2634:2650 svn+ssh://bruno@svn.mondorescue.org/mondo/svn/mondorescue/branches/2.2.9

  • Update Lab logos
  • update mondo lab + pres
  • Fix #425: Do not blindly umount partitions at end of mindi
  • Attempt to fix problem of slowdown in filelist creation by re-introducing a limit to the find command
  • Remove warning if libata not found
File:
1 edited

Legend:

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

    r2643 r2651  
    13561356            }
    13571357        }
     1358
     1359/**
     1360 * The maximum depth of directories to put in the skeleton filelist.
     1361 * This is a balance between performance and a good progress indicator.
     1362 */
     1363#define MAX_SKEL_DEPTH  3
     1364
    13581365#if linux
    13591366        // 2.6 has /sys as a proc-type thing -- must be excluded
    1360         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 -fstype none -prune -o %s -type d -print > %s 2> /dev/null", dir, find_excludes, g_skeleton_filelist);
     1367        mr_asprintf(strtmp, "find '%s' -maxdepth %d -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 -fstype none -prune -o %s -type d -print > %s 2> /dev/null", dir, MAX_SKEL_DEPTH, find_excludes, g_skeleton_filelist);
    13611368#else
    13621369        // On BSD, for example, /sys is the kernel sources -- don't exclude
    1363         mr_asprintf(strtmp, "find '%s' -fstype mvfs -prune -o -path /proc -prune -o %s -type d -print > %s 2> /dev/null", dir, find_excludes, g_skeleton_filelist);
     1370        mr_asprintf(strtmp, "find '%s' -maxdepth %d -fstype mvfs -prune -o -path /proc -prune -o %s -type d -print > %s 2> /dev/null", dir, MAX_SKEL_DEPTH, find_excludes, g_skeleton_filelist);
    13641371#endif
    13651372        mr_free(find_excludes);
     
    13831390        log_msg(5, "entries = %ld", g_skeleton_entries);
    13841391        percentage = 0;
    1385     } else // update evalcall form if appropriate
     1392    } else if (depth <= MAX_SKEL_DEPTH) // update evalcall form if appropriate
    13861393    {
    13871394        mr_asprintf(find_skeleton_marker, "grep -Fv '%s' %s > %s.new 2> /dev/null", dir, g_skeleton_filelist, g_skeleton_filelist);
Note: See TracChangeset for help on using the changeset viewer.