Lines Matching defs:child
36 #define ZR_REPLACING_PARENT 2 /* vdev is a child of a "replacing" vdev */
41 * we must recurse downwards to determine if the child of any "replacing" vdev
47 nvlist_t **child;
51 &child, &children) != 0) {
74 if (nvlist_lookup_string(child[c], ZPOOL_CONFIG_TYPE,
78 /* see if the disk vdev is a child of this vdev */
79 result = vdev_replacing_parent(zhp, vdev, child[c]);
83 * we're a replacing, then the vdev is a child of a replacing.
317 nvlist_t **child;
366 &child, &children) == 0)
384 * work out what type of node the child is
385 * and keep track of the child's sibling.
393 sibling = child[1];
396 sibling = child[c - 1];
404 sibling = child[1];
407 sibling = child[c - 1];
412 if (iter_by_vdev(zhp, child[c], cbp, tmp, sibling) ==
418 &child, &children) == 0)
420 if (iter_by_vdev(zhp, child[c], cbp, VDEV_IS_CACHE,
425 &child, &children) == 0)
427 if (iter_by_vdev(zhp, child[c], cbp,