Lines Matching defs:newroot
855 check_replication(nvlist_t *config, nvlist_t *newroot)
878 if ((nvlist_lookup_nvlist_array(newroot, ZPOOL_CONFIG_CHILDREN,
887 if (num_logs(newroot) == children) {
896 if ((new = get_replication(newroot, B_TRUE)) == NULL) {
1433 nvlist_t *newroot = NULL, **child;
1437 if ((newroot = construct_spec(argc, argv)) == NULL) {
1444 if (!flags.dryrun && make_disks(zhp, newroot) != 0) {
1445 nvlist_free(newroot);
1451 verify(nvlist_lookup_nvlist_array(newroot,
1463 nvlist_free(newroot);
1469 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) {
1470 nvlist_free(newroot);
1474 return (newroot);
1491 nvlist_t *newroot;
1500 if ((newroot = construct_spec(argc, argv)) == NULL)
1512 if (is_device_in_use(poolconfig, newroot, force, replacing, B_FALSE)) {
1513 nvlist_free(newroot);
1522 if (check_rep && check_replication(poolconfig, newroot) != 0) {
1523 nvlist_free(newroot);
1531 if (!dryrun && make_disks(zhp, newroot) != 0) {
1532 nvlist_free(newroot);
1537 return (newroot);