Changeset 2184


Ignore:
Timestamp:
Apr 30, 2009, 5:55:43 PM (10 years 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.