svn commit: r237810 - stable/8/etc/periodic/daily

John Baldwin jhb at FreeBSD.org
Fri Jun 29 17:28:59 UTC 2012


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

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/8/etc/periodic/daily/400.status-disks
Directory Properties:
  stable/8/etc/   (props changed)

Modified: stable/8/etc/periodic/daily/400.status-disks
==============================================================================
--- stable/8/etc/periodic/daily/400.status-disks	Fri Jun 29 17:28:48 2012	(r237809)
+++ stable/8/etc/periodic/daily/400.status-disks	Fri Jun 29 17:28:58 2012	(r237810)
@@ -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


More information about the svn-src-all mailing list