Lines Matching refs:children

494 	uint_t c, children;
532 &child, &children) != 0) {
572 for (c = 0; c < children; c++) {
814 uint_t children;
832 * for spares there may be no children, and therefore no
836 &child, &children) != 0) || (children == 0)) {
844 if (num_logs(newroot) == children) {
966 uint_t c, children;
979 &child, &children) != 0) {
1117 for (c = 0; c < children; c++)
1122 &child, &children) == 0)
1123 for (c = 0; c < children; c++)
1128 &child, &children) == 0)
1129 for (c = 0; c < children; c++)
1145 uint_t c, children;
1155 &child, &children) != 0) {
1188 for (c = 0; c < children; c++)
1194 &child, &children) == 0)
1195 for (c = 0; c < children; c++)
1201 &child, &children) == 0)
1202 for (c = 0; c < children; c++)
1334 * draid[<parity>][:<data><d|D>][:<children><c|C>][:<spares><s|S>]
1346 * - children: total number of devices (1-255)
1353 draid_config_by_type(nvlist_t *nv, const char *type, uint64_t children)
1399 if ((uint64_t)value != children) {
1401 gettext("invalid number of dRAID children; "
1404 (u_longlong_t)children);
1422 if (children > nspares + nparity) {
1423 ndata = MIN(children - nspares - nparity, 8);
1434 if (ndata == 0 || (ndata + nparity > children - nspares)) {
1438 (u_longlong_t)(children - nspares - nparity));
1446 if (nspares > 100 || nspares > (children - (ndata + nparity))) {
1453 /* Verify the requested number children is sufficient. */
1454 if (children < (ndata + nparity + nspares)) {
1457 (u_longlong_t)children,
1461 if (children > VDEV_DRAID_MAX_CHILDREN) {
1464 (u_longlong_t)children, VDEV_DRAID_MAX_CHILDREN);
1470 * number of data drives (children - nspares).
1472 while (ngroups * (ndata + nparity) % (children - nspares) != 0)
1521 int c, children = 0;
1599 children++;
1601 children * sizeof (nvlist_t *));
1607 for (c = 0; c < children - 1; c++)
1613 child[children - 1] = nv;
1616 if (children < mindev) {
1620 for (c = 0; c < children; c++)
1626 if (children > maxdev) {
1630 for (c = 0; c < children; c++)
1641 nspares = children;
1645 nl2cache = children;
1648 /* create a top-level vdev with children */
1677 fulltype, children) != 0) {
1678 for (c = 0; c < children; c++)
1686 (const nvlist_t **)child, children) == 0);
1688 for (c = 0; c < children; c++)
1779 uint_t c, children;
1795 ZPOOL_CONFIG_CHILDREN, &child, &children) == 0);
1796 for (c = 0; c < children; c++) {