Lines Matching refs:children
494 uint_t c, children; in get_replication() local
532 &child, &children) != 0) { in get_replication()
572 for (c = 0; c < children; c++) { in get_replication()
814 uint_t children; in check_replication() local
836 &child, &children) != 0) || (children == 0)) { in check_replication()
844 if (num_logs(newroot) == children) { in check_replication()
966 uint_t c, children; in make_disks() local
979 &child, &children) != 0) { in make_disks()
1117 for (c = 0; c < children; c++) in make_disks()
1122 &child, &children) == 0) in make_disks()
1123 for (c = 0; c < children; c++) in make_disks()
1128 &child, &children) == 0) in make_disks()
1129 for (c = 0; c < children; c++) in make_disks()
1145 uint_t c, children; in is_device_in_use() local
1155 &child, &children) != 0) { in is_device_in_use()
1188 for (c = 0; c < children; c++) in is_device_in_use()
1194 &child, &children) == 0) in is_device_in_use()
1195 for (c = 0; c < children; c++) in is_device_in_use()
1201 &child, &children) == 0) in is_device_in_use()
1202 for (c = 0; c < children; c++) in is_device_in_use()
1353 draid_config_by_type(nvlist_t *nv, const char *type, uint64_t children) in draid_config_by_type() argument
1399 if ((uint64_t)value != children) { in draid_config_by_type()
1404 (u_longlong_t)children); in draid_config_by_type()
1422 if (children > nspares + nparity) { in draid_config_by_type()
1423 ndata = MIN(children - nspares - nparity, 8); in draid_config_by_type()
1434 if (ndata == 0 || (ndata + nparity > children - nspares)) { in draid_config_by_type()
1438 (u_longlong_t)(children - nspares - nparity)); in draid_config_by_type()
1446 if (nspares > 100 || nspares > (children - (ndata + nparity))) { in draid_config_by_type()
1454 if (children < (ndata + nparity + nspares)) { in draid_config_by_type()
1457 (u_longlong_t)children, in draid_config_by_type()
1461 if (children > VDEV_DRAID_MAX_CHILDREN) { in draid_config_by_type()
1464 (u_longlong_t)children, VDEV_DRAID_MAX_CHILDREN); in draid_config_by_type()
1472 while (ngroups * (ndata + nparity) % (children - nspares) != 0) in draid_config_by_type()
1521 int c, children = 0; in construct_spec() local
1599 children++; in construct_spec()
1601 children * sizeof (nvlist_t *)); in construct_spec()
1607 for (c = 0; c < children - 1; c++) in construct_spec()
1613 child[children - 1] = nv; in construct_spec()
1616 if (children < mindev) { in construct_spec()
1620 for (c = 0; c < children; c++) in construct_spec()
1626 if (children > maxdev) { in construct_spec()
1630 for (c = 0; c < children; c++) in construct_spec()
1641 nspares = children; in construct_spec()
1645 nl2cache = children; in construct_spec()
1677 fulltype, children) != 0) { in construct_spec()
1678 for (c = 0; c < children; c++) in construct_spec()
1686 (const nvlist_t **)child, children) == 0); in construct_spec()
1688 for (c = 0; c < children; c++) in construct_spec()
1779 uint_t c, children; in split_mirror_vdev() local
1795 ZPOOL_CONFIG_CHILDREN, &child, &children) == 0); in split_mirror_vdev()
1796 for (c = 0; c < children; c++) { in split_mirror_vdev()