As suggested, this can be avoided by not checking the same filesystem twice.

--- standard_3.0pl1-121 2012-03-21 08:34:12.339516047 +0000
+++ standard    2012-03-21 08:34:02.111770395 +0000
@@ -10,6 +10,7 @@
 cd /
 LOCKFILE=/var/lock/cron.daily
 LOFO=lost+found
+SEENFS=""

 # When flock is available, avoid running more than once at a time
 if `which flock >/dev/null`; then
@@ -41,6 +42,10 @@
     # Only check on FS where we might expect lost+found
     echo "$FSTYPE" | grep -q -E '^(ext2|ext3|ext4|xfs)$' || continue

+    # Only check a filesystem once
+    echo "$SEENFS" | grep -q -E "$DEV " && continue
+    SEENFS="$DEV $SEENFS"
+
     [ "$MTPT" = '/' ] && MTPT=""
     # Replace spaces in the path (\040)
     MTPT="`echo $MTPT | sed -e 's/\\040/ /g'`"



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to