Changeset 2651 in MondoRescue
- Timestamp:
- Jun 13, 2010, 12:50:02 PM (15 years ago)
- Location:
- branches/2.2.10
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/mindi
r2644 r2651 240 240 # Parameter is exit code value 241 241 MindiExit() { 242 local my_partitions243 244 242 LogFile "Mindi $MINDI_VERSION is exiting" 245 243 LogFile "End date : `date`" … … 253 251 sync& 254 252 255 # Unmount what could remain mounted256 my_partitions=`mount | grep -F $MINDI_TMP | cut -f1 -d' '`257 [ "$my_partitions" != "" ] && umount $my_partitions258 253 # Clean temporary files only when standalone mindi 259 254 if [ _"$MINDI_TMP" != _"$MONDO_TMP" ]; then … … 2574 2569 2575 2570 # Compute libata version 2576 laver=`modinfo libata | grep -Ei '^Version:' | cut -d: -f2 | cut -d. -f1 | sed 's/ *//g' 2> /dev/null`2571 laver=`modinfo libata 2> /dev/null | grep -Ei '^Version:' | cut -d: -f2 | cut -d. -f1 | sed 's/ *//g' 2> /dev/null` 2577 2572 # If libata v2 is used then remove ide-generic as it will perturbate boot 2578 2573 if [ "`echo $MODULES | grep libata`" ]; then -
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.