summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorjpaetzel <jpaetzel@FreeBSD.org>2011-06-13 19:45:01 +0000
committerjpaetzel <jpaetzel@FreeBSD.org>2011-06-13 19:45:01 +0000
commitd33a1d3a06bc6927efb778d9ee040ca710e641e8 (patch)
tree90caf21dbd0c7d1df3ed6ceeeac7baee3c59a9f9 /etc/periodic
parentaccb907d3b1dc4a3805878935fb2d1b9724122e4 (diff)
downloadFreeBSD-src-d33a1d3a06bc6927efb778d9ee040ca710e641e8.zip
FreeBSD-src-d33a1d3a06bc6927efb778d9ee040ca710e641e8.tar.gz
Convert the allowed characters '-', '.', and ':' in a ZFS pool name to _
to avoid causing errors in the shell script. Submitted by: William Grzybowski <william88@gmail.com> Approved by: kib (mentor) MFC after: 7 days Sponsored by: iXsystems
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/800.scrub-zfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/daily/800.scrub-zfs b/etc/periodic/daily/800.scrub-zfs
index 7ad99fe..f1d74e3 100755
--- a/etc/periodic/daily/800.scrub-zfs
+++ b/etc/periodic/daily/800.scrub-zfs
@@ -46,7 +46,7 @@ case "$daily_scrub_zfs_enable" in
esac
# determine how many days shall be between scrubs
- eval _pool_threshold=\${daily_scrub_zfs_${pool}_threshold}
+ eval _pool_threshold=\${daily_scrub_zfs_$(echo "${pool}"|tr -s "-" "_"|tr -s "." "_"|tr -s ":" "_")_threshold}
if [ -z "${_pool_threshold}" ];then
_pool_threshold=${daily_scrub_zfs_default_threshold}
fi
OpenPOWER on IntegriCloud