Lines Matching refs:vdev_child

101 		csize = vdev_psize_to_asize(vd->vdev_child[c], psize);
149 vdev_set_min_asize(vd->vdev_child[c]);
160 ASSERT(rvd->vdev_child[vdev] != NULL);
161 return (rvd->vdev_child[vdev]);
176 if ((mvd = vdev_lookup_by_guid(vd->vdev_child[c], guid)) !=
192 n += vdev_count_leaves_impl(vd->vdev_child[c]);
219 ASSERT(id >= pvd->vdev_children || pvd->vdev_child[id] == NULL);
226 if (pvd->vdev_child != NULL) {
227 bcopy(pvd->vdev_child, newchild, oldsize);
228 kmem_free(pvd->vdev_child, oldsize);
231 pvd->vdev_child = newchild;
232 pvd->vdev_child[id] = cvd;
256 ASSERT(pvd->vdev_child[id] == cvd);
258 pvd->vdev_child[id] = NULL;
262 if (pvd->vdev_child[c])
266 kmem_free(pvd->vdev_child, c * sizeof (vdev_t *));
267 pvd->vdev_child = NULL;
291 if (pvd->vdev_child[c])
297 if ((cvd = pvd->vdev_child[c]) != NULL) {
303 kmem_free(pvd->vdev_child, oldc * sizeof (vdev_t *));
304 pvd->vdev_child = newchild;
626 vdev_free(vd->vdev_child[c]);
628 ASSERT(vd->vdev_child == NULL);
769 vdev_top_update(tvd, vd->vdev_child[c]);
1118 if (vdev_uses_zvols(vd->vdev_child[c]))
1136 vd->vdev_child[c]->vdev_open_error =
1137 vdev_open(vd->vdev_child[c]);
1144 VERIFY(taskq_dispatch(tq, vdev_open_child, vd->vdev_child[c],
1241 if (vd->vdev_child[c]->vdev_state != VDEV_STATE_HEALTHY) {
1377 if (vdev_validate(vd->vdev_child[c], strict) != 0)
1524 vdev_hold(vd->vdev_child[c]);
1537 vdev_rele(vd->vdev_child[c]);
1643 vdev_dirty_leaves(vd->vdev_child[c], flags, txg);
1814 vdev_dtl_reassess(vd->vdev_child[c], txg,
1904 vdev_t *cvd = vd->vdev_child[c];
1947 error = vdev_dtl_load(vd->vdev_child[c]);
1994 vdev_construct_zaps(vd->vdev_child[i], tx);
2140 vdev_t *cvd = vd->vdev_child[c];
2165 vdev_load(vd->vdev_child[c]);
2481 vd->vdev_parent->vdev_child[0] == vd)
2624 vdev_clear(spa, vd->vdev_child[c]);
2666 vd->vdev_parent->vdev_child[0] == vd)
2769 vdev_t *cvd = rvd->vdev_child[c];
2798 vdev_scan_stat_init(vd->vdev_child[c]);
3063 vdev_config_dirty(rvd->vdev_child[c]);
3141 child = vd->vdev_child[c];
3341 if (!vdev_is_bootable(vd->vdev_child[c]))
3363 vdev_load_log_state(nvd->vdev_child[c], ovd->vdev_child[c]);
3389 if (vdev_log_state_valid(vd->vdev_child[c]))
3421 cvd = pvd->vdev_child[0];
3433 vdev_t *cvd = vd->vdev_child[c];