Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jun 2012 17:28:49 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r237809 - stable/9/etc/periodic/daily
Message-ID:  <201206291728.q5THSnWi059455@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206291728.q5THSnWi059455>