]> git.proxmox.com Git - zfsonlinux.git/blame - zfs/debian/tree/zfsutils-linux/usr/lib/zfs-linux/scrub
add 3 patches for lintian errors
[zfsonlinux.git] / zfs / debian / tree / zfsutils-linux / usr / lib / zfs-linux / scrub
CommitLineData
28f635be
FG
1#!/bin/sh -eu
2
3# Scrub all healthy pools.
4zpool list -H -o health,name 2>&1 | \
5 awk 'BEGIN {FS="\t"} {if ($1 ~ /^ONLINE/) print $2}' | \
6while read pool
7do
8 zpool scrub "$pool"
9done