Make zpool clear reset the removed flag on vdevs

Signed-off-by: Allan Jude <allan@klarasystems.com>
This commit is contained in:
Allan Jude 2023-02-28 19:52:46 +00:00 committed by Geoff Amey
parent 41b06f70c6
commit 9c9eed9737
1 changed files with 1 additions and 1 deletions

View File

@ -4199,7 +4199,7 @@ vdev_clear(spa_t *spa, vdev_t *vd)
* written out to disk.
*/
if (vd->vdev_faulted || vd->vdev_degraded ||
!vdev_readable(vd) || !vdev_writeable(vd)) {
!vdev_readable(vd) || !vdev_writeable(vd) || vd->vdev_removed) {
/*
* When reopening in response to a clear event, it may be due to
* a fmadm repair request. In this case, if the device is