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
This commit is contained in:
Tom Caputi
2019-05-02 19:42:31 -04:00
committed by Brian Behlendorf
parent 85bdc68401
commit fa24166074
6 changed files with 30 additions and 1 deletions
+3 -1
View File
@@ -2216,7 +2216,9 @@ again.
.Xc
Starts a resilver. If an existing resilver is already running it will be
restarted from the beginning. Any drives that were scheduled for a deferred
resilver will be added to the new one.
resilver will be added to the new one. This requires the
.Sy resilver_defer
feature.
.It Xo
.Nm
.Cm trim