From owner-svn-src-stable@FreeBSD.ORG Fri Jun 29 17:28:49 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E37B106564A; Fri, 29 Jun 2012 17:28:49 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 681758FC0C; Fri, 29 Jun 2012 17:28:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5THSn8r059457; Fri, 29 Jun 2012 17:28:49 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5THSnWi059455; Fri, 29 Jun 2012 17:28:49 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201206291728.q5THSnWi059455@svn.freebsd.org> From: John Baldwin Date: Fri, 29 Jun 2012 17:28:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237809 - stable/9/etc/periodic/daily X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2012 17:28:49 -0000 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