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
Parents
rG63d4838b4ac5: FreeBSD: handle V_PCATCH
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGa2705b1dd5f8: zpool: Don't print "repairing" on force faulted drives (authored by Tony Hutter <hutter2@llnl.gov>).Sep 28 2022, 7:41 PM