]> git.proxmox.com Git - mirror_zfs.git/commit
Add feature check for 'zpool resilver' command
authorTom Caputi <tcaputi@datto.com>
Thu, 2 May 2019 23:42:31 +0000 (19:42 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 2 May 2019 23:42:31 +0000 (16:42 -0700)
commitfa241660743d75a97001509c613b400fb60f26be
tree6a7aa54bd9a83d87ac4f5ab9375255616a477f5f
parent85bdc6840190879e4b97364dfa6d93e2877a265e
Add feature check for 'zpool resilver' command

The 'zpool resilver' command requires that the resilver_defer
feature is active on the pool. Unfortunately, the check for
this was left out of the original patch. This commit simply
corrects this so that the command properly returns an error
in this case.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8700
include/libzfs.h
lib/libzfs/libzfs_pool.c
lib/libzfs/libzfs_util.c
man/man8/zpool.8
module/zfs/spa.c
tests/zfs-tests/tests/functional/cli_root/zpool_resilver/zpool_resilver_bad_args.ksh