Lines Matching refs:newroot
794 check_replication(nvlist_t *config, nvlist_t *newroot) in check_replication() argument
817 if ((nvlist_lookup_nvlist_array(newroot, ZPOOL_CONFIG_CHILDREN, in check_replication()
826 if (num_logs(newroot) == children) { in check_replication()
835 if ((new = get_replication(newroot, B_TRUE)) == NULL) { in check_replication()
1368 nvlist_t *newroot = NULL, **child; in split_mirror_vdev() local
1372 if ((newroot = construct_spec(argc, argv)) == NULL) { in split_mirror_vdev()
1378 if (!flags.dryrun && make_disks(zhp, newroot) != 0) { in split_mirror_vdev()
1379 nvlist_free(newroot); in split_mirror_vdev()
1384 verify(nvlist_lookup_nvlist_array(newroot, in split_mirror_vdev()
1396 nvlist_free(newroot); in split_mirror_vdev()
1402 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) { in split_mirror_vdev()
1403 if (newroot != NULL) in split_mirror_vdev()
1404 nvlist_free(newroot); in split_mirror_vdev()
1408 return (newroot); in split_mirror_vdev()
1425 nvlist_t *newroot; in make_root_vdev() local
1434 if ((newroot = construct_spec(argc, argv)) == NULL) in make_root_vdev()
1446 if (is_device_in_use(poolconfig, newroot, force, replacing, B_FALSE)) { in make_root_vdev()
1447 nvlist_free(newroot); in make_root_vdev()
1456 if (check_rep && check_replication(poolconfig, newroot) != 0) { in make_root_vdev()
1457 nvlist_free(newroot); in make_root_vdev()
1464 if (!dryrun && make_disks(zhp, newroot) != 0) { in make_root_vdev()
1465 nvlist_free(newroot); in make_root_vdev()
1469 return (newroot); in make_root_vdev()