Changeset 2813 in MondoRescue


Ignore:
Timestamp:
Apr 29, 2011, 3:40:15 PM (13 years ago)
Author:
Bruno Cornec
Message:

r2185@localhost (orig r2184): bruno | 2009-04-30 17:55:43 +0200
-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.8/mondo/src/common/libmondo-filelist.c

    r2805 r2813  
    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.