Changeset 2651 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Jun 13, 2010, 12:50:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-filelist.c
r2643 r2651 1356 1356 } 1357 1357 } 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 1358 1365 #if linux 1359 1366 // 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); 1361 1368 #else 1362 1369 // 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); 1364 1371 #endif 1365 1372 mr_free(find_excludes); … … 1383 1390 log_msg(5, "entries = %ld", g_skeleton_entries); 1384 1391 percentage = 0; 1385 } else // update evalcall form if appropriate1392 } else if (depth <= MAX_SKEL_DEPTH) // update evalcall form if appropriate 1386 1393 { 1387 1394 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.