Lines Matching defs:newroot
795 check_replication(nvlist_t *config, nvlist_t *newroot)
819 if ((nvlist_lookup_nvlist_array(newroot, ZPOOL_CONFIG_CHILDREN,
828 if (num_logs(newroot) == children) {
837 if ((new = get_replication(newroot, B_TRUE)) == NULL) {
1733 nvlist_t *newroot = NULL, **child;
1737 if ((newroot = construct_spec(props, argc, argv)) == NULL) {
1743 if (!flags.dryrun && make_disks(zhp, newroot) != 0) {
1744 nvlist_free(newroot);
1749 verify(nvlist_lookup_nvlist_array(newroot,
1761 nvlist_free(newroot);
1767 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) {
1768 nvlist_free(newroot);
1772 return (newroot);
1813 nvlist_t *newroot;
1822 if ((newroot = construct_spec(props, argc, argv)) == NULL)
1826 nvlist_free(newroot);
1836 if (is_device_in_use(poolconfig, newroot, force, replacing, B_FALSE)) {
1837 nvlist_free(newroot);
1846 if (check_rep && check_replication(poolconfig, newroot) != 0) {
1847 nvlist_free(newroot);
1854 if (poolconfig == NULL && num_normal_vdevs(newroot) == 0) {
1857 nvlist_free(newroot);
1864 if (!dryrun && make_disks(zhp, newroot) != 0) {
1865 nvlist_free(newroot);
1869 return (newroot);