Author: jhb
Date: Fri Jun 29 17:28:48 2012
New Revision: 237809
URL: http://svn.freebsd.org/changeset/base/237809

Log:
  MFC 237337:
  Only output a list of file systems that need to be dumped if the system
  has a non-empty dumpdates file.

Modified:
  stable/9/etc/periodic/daily/400.status-disks
Directory Properties:
  stable/9/etc/   (props changed)

Modified: stable/9/etc/periodic/daily/400.status-disks
==============================================================================
--- stable/9/etc/periodic/daily/400.status-disks        Fri Jun 29 17:28:03 
2012        (r237808)
+++ stable/9/etc/periodic/daily/400.status-disks        Fri Jun 29 17:28:48 
2012        (r237809)
@@ -19,12 +19,15 @@ case "$daily_status_disks_enable" in
        df $daily_status_disks_df_flags && rc=1 || rc=3
 
        # display which filesystems need backing up
-       if ! [ -f /etc/fstab ]; then
-               export PATH_FSTAB=/dev/null
-       fi
+       if [ -s /etc/dumpdates ]; then
+               if ! [ -f /etc/fstab ]; then
+                       export PATH_FSTAB=/dev/null
+               fi
 
-       echo ""
-       dump W || rc=3;;
+               echo ""
+               dump W || rc=3
+       fi
+       ;;
 
     *)  rc=0;;
 esac
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"

Reply via email to