aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2010-08-19 09:00:17 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2010-08-19 09:00:17 +0000
commit7e9b7dcdc55dadfe5914e91bd692df891a892787 (patch)
treeee9a696c70ff0c3b072088216837216e6ac41b64
parent8b2b854be03961315f24c1fa3a8e35f7c4f20ff2 (diff)
Notes
-rw-r--r--etc/periodic/daily/Makefile6
-rw-r--r--share/man/man5/periodic.conf.521
-rw-r--r--tools/build/mk/OptionalObsoleteFiles.inc2
3 files changed, 27 insertions, 2 deletions
diff --git a/etc/periodic/daily/Makefile b/etc/periodic/daily/Makefile
index 80583a1182bc..f70dac5d94d3 100644
--- a/etc/periodic/daily/Makefile
+++ b/etc/periodic/daily/Makefile
@@ -8,7 +8,6 @@ FILES= 100.clean-disks \
200.backup-passwd \
330.news \
400.status-disks \
- 404.status-zfs \
405.status-ata-raid \
406.status-gmirror \
407.status-graid3 \
@@ -53,4 +52,9 @@ FILES+= 150.clean-hoststat \
500.queuerun
.endif
+.if ${MK_ZFS} != "no"
+FILES+= 404.status-zfs \
+ 800.scrub-zfs
+.endif
+
.include <bsd.prog.mk>
diff --git a/share/man/man5/periodic.conf.5 b/share/man/man5/periodic.conf.5
index 2052a1b48801..7947a59626c3 100644
--- a/share/man/man5/periodic.conf.5
+++ b/share/man/man5/periodic.conf.5
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 12, 2007
+.Dd June 15, 2010
.Dt PERIODIC.CONF 5
.Os
.Sh NAME
@@ -611,6 +611,25 @@ when
.Va daily_queuerun_enable
is set to
.Dq Li YES .
+.It Va daily_scrub_zfs_enable
+.Pq Vt bool
+Set to
+.Dq Li YES
+if you want to run a zfs scrub periodically.
+.It Va daily_scrub_zfs_pools
+.Pq Vt str
+A space separated list of names of zfs pools to scrub.
+If the list is empty or not set, all zfs pools are scrubbed.
+.It Va daily_scrub_zfs_default_threshold
+.Pq Vt int
+Number of days between a scrub if no pool-specific threshold is set.
+The default value if no value is set is 30.
+.It Va daily_scrub_zfs_ Ns Ao Ar poolname Ac Ns Va _threshold
+.Pq Vt int
+The same as
+.Va daily_scrub_zfs_default_threshold
+but specific to the pool
+.Va Ns Ao Ar poolname Ac Ns .
.It Va daily_local
.Pq Vt str
Set to a list of extra scripts that should be run after all other
diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc
index 5688a5fac07c..8a5db1d4b1e0 100644
--- a/tools/build/mk/OptionalObsoleteFiles.inc
+++ b/tools/build/mk/OptionalObsoleteFiles.inc
@@ -344,6 +344,8 @@ OLD_FILES+=usr/lib/libuutil.so
.if ${MK_ZFS} == no
OLD_LIBS+=lib/libzfs.so.1
OLD_LIBS+=lib/libzpool.so.1
+OLD_FILES+=etc/periodic/daily/404.status-zfs
+OLD_FILES+=etc/periodic/daily/800.scrub-zfs
OLD_FILES+=sbin/zfs
OLD_FILES+=sbin/zpool
OLD_FILES+=usr/lib/libzfs.a