zfsonlinux/debian
Richard Laager 4472322f60 cron: Do not error if already scrubbing
If a pool is already scrubbing, zpool scrub will return an error.  This
breaks the cron scrub script.  It outputs that error and then does not
scrub any further pools.

This change checks to see if the pool is scrubbing before attempting to
start a scrub.  This addresses long-running scrubs.  Note that a
"long-running" scrub here is not necessarily a month long.  If the
system is shut off or the pool is exported, the scrub will resume later.

(cherry picked from 41e457da7bfc837a52f3389cb6961bc6737b874d [0])

[0]  https://salsa.debian.org/zfsonlinux-team/zfs.git

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-03-23 08:08:11 +01:00
..
patches update submodule and patches for zfs-0.8.3 2020-01-24 09:11:47 +01:00
source Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
tree cron: Do not error if already scrubbing 2020-03-23 08:08:11 +01:00
changelog bump version to 0.8.3-pve1 2020-01-24 09:11:55 +01:00
compat Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
control Reword ZFS Description 2020-03-23 08:08:11 +01:00
copyright Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
copyright.cme Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libnvpair1linux.docs Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libnvpair1linux.install Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libnvpair1linux.lintian-overrides Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libuutil1linux.docs Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libuutil1linux.install Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libuutil1linux.lintian-overrides Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libzfs2linux.docs Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libzfs2linux.install Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libzfs2linux.lintian-overrides Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libzfslinux-dev.docs Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libzfslinux-dev.install Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libzpool2linux.docs Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libzpool2linux.install Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
libzpool2linux.lintian-overrides Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
not-installed Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
python3-pyzfs.install Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
rules d/rules: use dh_missing instead of dh_install --fail-missing 2019-09-30 06:50:45 +02:00
watch Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
zfs-initramfs.install Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
zfs-initramfs.triggers Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
zfs-test.install Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
zfs-test.lintian-overrides Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
zfs-zed.install Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
zfsutils-linux.cron.d Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
zfsutils-linux.docs Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
zfsutils-linux.examples Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
zfsutils-linux.install update submodule and patches for zfs-0.8.3 2020-01-24 09:11:47 +01:00
zfsutils-linux.lintian-overrides Move zfs to top-level directory 2019-05-24 12:02:52 +02:00
zfsutils-linux.postinst Move zfs to top-level directory 2019-05-24 12:02:52 +02:00