Changeset 2184

Show
Ignore:
Timestamp:
04/30/09 17:55:43 (1 year ago)
Author:
bruno
Message:

-Remove the maxdepth param in find to take in account deeply mounted proc file systems. Shouldn't slowdown stuff too much on local disks, maybe more on net FS, but net FS should nearly always be excluded.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2.9/mondo/src/common/libmondo-filelist.c

    r2176 r2184  
    14041404#if linux 
    14051405        // 2.6 has /sys as a proc-type thing -- must be excluded 
    1406         // // BCO: Why is there a maxdepth here ? this makes remounted /proc included ! 
    14071406        asprintf(&strtmp, 
    1408              "find %s -maxdepth %d -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", 
     1407             "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", 
    14091408             dir, MAX_SKEL_DEPTH, find_excludes, g_skeleton_filelist); 
    14101409#else