Lines Matching defs:newroot
852 check_replication(nvlist_t *config, nvlist_t *newroot)
875 if ((nvlist_lookup_nvlist_array(newroot, ZPOOL_CONFIG_CHILDREN,
884 if (num_logs(newroot) == children) {
893 if ((new = get_replication(newroot, B_TRUE)) == NULL) {
1463 nvlist_t *newroot = NULL, **child;
1470 if ((newroot = construct_spec(argc, argv)) == NULL) {
1483 make_disks(zhp, newroot, boot_type, 0) != 0) {
1484 nvlist_free(newroot);
1490 verify(nvlist_lookup_nvlist_array(newroot,
1502 nvlist_free(newroot);
1508 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) {
1509 nvlist_free(newroot);
1513 return (newroot);
1531 nvlist_t *newroot;
1540 if ((newroot = construct_spec(argc, argv)) == NULL)
1552 if (is_device_in_use(poolconfig, newroot, force, replacing, B_FALSE)) {
1553 nvlist_free(newroot);
1562 if (check_rep && check_replication(poolconfig, newroot) != 0) {
1563 nvlist_free(newroot);
1571 if (!dryrun && make_disks(zhp, newroot, boot_type, boot_size) != 0) {
1572 nvlist_free(newroot);
1577 return (newroot);