Bug 188893

Summary: [patch] periodic(8): ZFS periodic information - improvement
Product: Base System Reporter: dirkx
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me Keywords: patch
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description dirkx 2014-04-22 16:20:01 UTC
Would be nice to have something like below in /etc/periodic/daily - as
to show the status of the ZFS file system when such is enabled.

Thanks,

Dw.

Fix: 

#!/bin/sh -
#
# $FreeBSD$
#

if [ -r /etc/defaults/periodic.conf ]; then
	. /etc/defaults/periodic.conf
	source_periodic_confs
fi

rc=0

case "${zfs_enable:-YES}" in
	[Nn][Oo])
	;;
	*)
	echo ZFS Pool status
	echo ===============
	echo
	zpool status || rc=$?
	echo
	echo Recent changes:
	zpool history  | grep -e `date +%Y-%m-%d` -e `date -v-24H +%Y-%m-%d`
	echo
	;;
esac

exit $rc
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:26 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:34:41 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>