HomeFreeBSD

zpool: Don't print "repairing" on force faulted drives

Description

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

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Sep 23 2022, 5:24 PM
GitHub <noreply@github.com>Committed on Sep 23 2022, 5:24 PM
Parents
rGce55d6ae4689: ZTS: fallocate tests fail with hard coded values
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGe9b12d4196c0: zpool: Don't print "repairing" on force faulted drives (authored by Tony Hutter <hutter2@llnl.gov>).Sep 23 2022, 5:24 PM