spa_removing_phys
spa->spa_removing_phys.sr_state = DSS_NONE;
spa->spa_removing_phys.sr_removing_vdev = -1;
spa->spa_removing_phys.sr_prev_indirect_vdev = -1;
spa->spa_removing_phys.sr_prev_indirect_vdev != -1) {
vdevid = spa->spa_removing_phys.sr_prev_indirect_vdev;
spa_removing_phys_t spa_removing_phys;
ASSERT3U(spa->spa_removing_phys.sr_copied, ==,
spa->spa_removing_phys.sr_to_copy);
sizeof (spa->spa_removing_phys) / sizeof (uint64_t),
&spa->spa_removing_phys, tx));
spa->spa_removing_phys.sr_copied;
spa->spa_removing_phys.sr_copied += svr->svr_bytes_done[txgoff];
if (spa->spa_removing_phys.sr_state == DSS_SCANNING)
prs->prs_state = spa->spa_removing_phys.sr_state;
prs->prs_removing_vdev = spa->spa_removing_phys.sr_removing_vdev;
prs->prs_start_time = spa->spa_removing_phys.sr_start_time;
prs->prs_end_time = spa->spa_removing_phys.sr_end_time;
prs->prs_to_copy = spa->spa_removing_phys.sr_to_copy;
prs->prs_copied = spa->spa_removing_phys.sr_copied;
spa->spa_removing_phys.sr_prev_indirect_vdev;
spa->spa_removing_phys.sr_removing_vdev = vd->vdev_id;
spa->spa_removing_phys.sr_start_time = gethrestime_sec();
spa->spa_removing_phys.sr_end_time = 0;
spa->spa_removing_phys.sr_state = DSS_SCANNING;
spa->spa_removing_phys.sr_to_copy = 0;
spa->spa_removing_phys.sr_copied = 0;
spa->spa_removing_phys.sr_to_copy +=
spa->spa_removing_phys.sr_to_copy -=
sizeof (spa->spa_removing_phys) / sizeof (uint64_t),
&spa->spa_removing_phys);
spa->spa_removing_phys.sr_state = DSS_NONE;
spa->spa_removing_phys.sr_removing_vdev = -1;
spa->spa_removing_phys.sr_prev_indirect_vdev = -1;
if (spa->spa_removing_phys.sr_state == DSS_SCANNING) {
spa->spa_removing_phys.sr_removing_vdev);
spa->spa_removing_phys.sr_prev_indirect_vdev;
spa_removing_phys_t *srp = &spa->spa_removing_phys;
spa->spa_removing_phys.sr_state = state;
spa->spa_removing_phys.sr_end_time = gethrestime_sec();