]> git.proxmox.com Git - mirror_zfs.git/commit
zpool: Don't print "repairing" on force faulted drives
authorTony Hutter <hutter2@llnl.gov>
Fri, 23 Sep 2022 17:24:19 +0000 (10:24 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Sep 2022 17:24:19 +0000 (10:24 -0700)
commite9b12d4196c07cc26e8c9b1826f6d091617cae53
tree7086ee4dd88b756240e8f7f0439a5ca9a04c9843
parentce55d6ae4689057a657986fcd9ea4c95cadb6381
zpool: Don't print "repairing" on force faulted drives

If you force fault a drive that's resilvering, it's scan stats can get
frozen in time, giving the false impression that it's being resilvered.
This commit checks the vdev state to see if the vdev is healthy before
reporting "resilvering" or "repairing" in zpool status.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #13927
Closes #13930
cmd/zpool/zpool_main.c