Lines Matching defs:newroot
940 check_replication(libzfs_handle_t *hdl, nvlist_t *config, nvlist_t *newroot,
966 if ((nvlist_lookup_nvlist_array(newroot, ZPOOL_CONFIG_CHILDREN,
974 if (!valid_replication(hdl, newroot, &p_new, &s_new, B_TRUE, force))
1507 nvlist_t *newroot = NULL;
1520 if ((newroot = construct_spec(hdl, vdevcount, vdevlist))
1525 if (!flags.dryrun && make_disks(hdl, zhp, newroot,
1528 nvlist_free(newroot);
1532 verify(nvlist_lookup_nvlist_array(newroot,
1547 nvlist_free(newroot);
1553 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) {
1555 if (newroot != NULL)
1556 nvlist_free(newroot);
1560 return (newroot);
1578 nvlist_t *newroot;
1589 if ((newroot = construct_spec(hdl, vdevcount, vdevlist)) == NULL) {
1603 if (check_in_use(hdl, poolconfig, newroot, force, replacing, B_FALSE)
1605 nvlist_free(newroot);
1614 if (check_rep && check_replication(hdl, poolconfig, newroot, force)
1616 nvlist_free(newroot);
1623 if (!dryrun && make_disks(hdl, zhp, newroot, create_req_part) != 0) {
1624 nvlist_free(newroot);
1629 return (newroot);