case $((snapminutes2 % window)) in
0) ;;
*)
- snapname=$(echo "$snapshot" |
- sed 's,/\(.*\)/.zfs/snapshot/\(.*\),\1@\2,')
+ snapname=${filesystem}$(echo "$snapshot" |
+ sed 's,/\(.*\)/.zfs/snapshot/\(.*\),@\2,')
destroy "$snapname"
;;
esac
window=$((window*2))
done
if [ $maxagedays -gt 0 ] && [ $age -gt $((maxagedays * 24 * 60)) ]; then
- snapname=$(echo "$snapshot" |
- sed 's,/\(.*\)/.zfs/snapshot/\(.*\),\1@\2,')
+ snapname=${filesystem}$(echo "$snapshot" |
+ sed 's,/\(.*\)/.zfs/snapshot/\(.*\),@\2,')
destroy "$snapname"
fi
done
# running at any given time. This serializes the zfs
# scrub process for any pool.
+exec >> /var/log/zfs/zfs-scrub.log 2>&1
+
PATH=/usr/sbin:/sbin:/etc/bin:$PATH
pools="$*"